Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Javac error - representation for string is too long for the constant pool

843810Nov 27 2008 — edited Nov 27 2008
Hello.
I try to compile source generated with JAXB 1.0 and compiler throws error
[javac] C:/dev/jaxb/report bug/example/generated/generated/impl/CategoryWith
ItemsImpl.java:471: UTF8 representation for string "▼ ??g|????e?..." is to
o long for the constant pool
The source file contains very long strings that seem to be the reason of error. How can I compile it without getting error?
You can download example here
Just unzip and run Ant to check example
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 25 2008
Added on Nov 27 2008
2 comments
1,000 views