Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 2.0.6, 2.0.7, 2.1, 3.0
-
Fix Version/s: None
-
Environment:IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows 7 amd64-64 jvmwa6460sr9-20110726_87724 (JIT enabled, AOT enabled)
-
Number of attachments :
Description
org.codehaus.plexus.util.xml.XmlReader.getXmlProlog() may be fail to handle XML containing multibyte character located across the 4096-th byte.
Due to the strange behavior of IBM J9's
String(byte[] data, int start, int length, String encoding)
constructor implementation. If the length parameter fall on the middle of any multibyte character (Chinese, Japanese, Korean, etc.) The newly created String in IBM's J9 JVM will be length 1, and the numeric value of the only character is -1.
Run "mvn" on J9 to the attached pom.xml can reproduce this problem.
I can confirm that this problem is gone under IBM's J9 build pwa6460sr10fp1-20120321_01(SR10 FP1).