Issue: java.nio.charset.CharsetDecoder can corrupt data during Load on IBM 1.6/1.7 VMs

Summary

When file content encoding is changed during load, some characters that cannot be mapped to the targeted encoding may be replaced with the ‘?’ character causing a loss of data.

More Information

Problem

There is a bug in the java.nio.charset.CharsetDecoder implementation on the IBM 1.6/1.7 VMs that prevents the conversion from terminating when a character cannot be mapped to the targeted encoding. The java.nio.charset.CharsetDecoder instantiation sets the action to be java.nio.charset.CodingErrorAction.REPORT when an unmappable character is encountered. The problem is that this action is ignored and the corresponding character is replaced with a ‘?’ character.

Workarounds

There is no workaround at this time for users that do not have access to an Oracle VM on their platforms. A fix for the IBM VM is expected to be ready in Java 7 SR4 release.

Related Information

The following links point to related information:


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Feedback
Was this information helpful? Yes No 0 people rated this as helpful.