JDK-4353007 : there is a very long String in my program which may result in this problem.
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.2.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 2000-07-13
  • Updated: 2000-07-25
  • Resolved: 2000-07-25
Related Reports
Duplicate :  
Description

Name: jk109818			Date: 07/13/2000


Classic VM (build JDK-1.2.2-W, green threads, sunwjit)




java.io.UTFDataFormatException
        at java.io.DataOutputStream.writeUTF(DataOutputStream.java, Compiled
Code)
        at sun.tools.asm.StringConstantData.write(StringConstantData.java,
Compiled Code)
        at sun.tools.asm.ConstantPool.write(ConstantPool.java, Compiled Code)
        at sun.tools.javac.SourceClass.compileClass(SourceClass.java, Compiled
Curanus[160] [~/Bioinformatics/multiagent/GUI/]> javac QueryInterface.java
java.io.UTFDataFormatException
        at java.io.DataOutputStream.writeUTF(DataOutputStream.java, Compiled
Code)
        at sun.tools.asm.StringConstantData.write(StringConstantData.java,
Compiled Code)
        at sun.tools.asm.ConstantPool.write(ConstantPool.java, Compiled Code)
        at sun.tools.javac.SourceClass.compileClass(SourceClass.java, Compiled
Code)
        at sun.tools.javac.SourceClass.compile(SourceClass.java, Compiled Code)
        at sun.tools.javac.Main.compile(Main.java, Compiled Code)
        at sun.tools.javac.Main.main(Main.java, Compiled Code)
error: An exception has occurred in the compiler; please file a bug report
(http://java.sun.com/cgi-bin/bugreport.cgi).
1 error
(Review ID: 107179) 
======================================================================

Comments
WORK AROUND Name: jk109818 Date: 07/13/2000 unavailable. ======================================================================
11-06-2004

EVALUATION The total length of a UTF-encoded string is limited to 64k. This is a platform limit. The exception should be caught by the compiler and a friendly diagnostic produced. The offending source code cannot be compiled, however. This is a duplicate of 4071592, now subsumed by 4309152. william.maddox@Eng 2000-07-25
25-07-2000