This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Problems with Proguard obfuscator ( 4.2 ) related to converting '\u0000' ( see issue 161977 ) | ||
---|---|---|---|
Product: | javame | Reporter: | silvioturrini <silvioturrini> |
Component: | -- Other -- | Assignee: | issues@mobility <issues> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
silvioturrini
2009-04-07 19:46:21 UTC
Btw, have you tried to use ProGuard 4.3? Could you test it for me please? Unfortunately this is bug in ProGuard. We did intensive investigation, and it is connected with security fix in JDK6u11 (UTF8 handling), issue 486841, the problem is wrong handling of UTF constants in constant pool in ProGuard Utf8Constants.java. See also Java VM spec, paragraph 4.4.7 http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#7963 Test case you can try to run on JDK6_u10 and then on JDK6_u11+: public class TestUTFIssue { public static void main(String[] args) throws UnsupportedEncodingException { byte[] data = new byte[]{(byte)0xc0,(byte)0x80,(byte)0xc0,(byte)0x80}; String s = new String(data, "UTF-8"); for (int i=0;i<s.length();i++) { System.out.println(Integer.toHexString(s.charAt(i))); } } } |