Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4210937

gets java.io.UTFDataFormatException when compile a large string.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P4
    • None
    • 1.1.1, 1.1.2, 1.1.7, 1.2.0, 1.2.1, 1.2.2
    • tools
    • generic, x86, sparc
    • generic, solaris_2.5, solaris_2.5.1, solaris_2.6, windows_95, windows_nt

    Description



      Name: igT44549 Date: 02/11/99


      Try to compile a code and gets:

      java.io.UTFDataFormatException
              at java.io.DataOutputStream.writeUTF(Compiled Code)
              at sun.tools.asm.StringConstantData.write(Compiled Code)
              at sun.tools.asm.ConstantPool.write(Compiled Code)
              at sun.tools.javac.SourceClass.compileClass(Compiled Code)
              at sun.tools.javac.SourceClass.compile(Compiled Code)
              at sun.tools.javac.Main.compile(Compiled Code)
              at sun.tools.javac.Main.main(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


      The source code contains a string has a length of 102400 characters.
      (Review ID: 52620)
      ======================================================================

      Name: skT88420 Date: 06/30/99


      Compiler fails with following stack trace when compiling a large piece of static text

      java.io.UTFDataFormatException
      at java.lang.Throwable.fillInStackTrace(Native Method)
      at java.lang.Throwable.fillInStackTrace(Compiled Code)
      at java.lang.Throwable.<init>(Compiled Code)
      at java.lang.Exception.<init>(Compiled Code)
      at java.io.IOException.<init>(IOException.java:35)
      at java.io.UTFDataFormatException.<init>(UTFDataFormatException.java:37)
      at java.io.DataOutputStream.writeUTF(Compiled Code)
      at sun.tools.asm.StringConstantData.write(Compiled Code)
      at sun.tools.asm.ConstantPool.write(Compiled Code)
      at sun.tools.javac.SourceClass.compileClass(Compiled Code)
      at sun.tools.javac.SourceClass.compile(Compiled Code)
      at sun.tools.javac.Main.compile(Compiled Code)
      at sun.tools.javac.Main.main(Main.java:733)

      The string I'm compiling is for testing purposes - its around 32,000 characters - big, but useful for comparing different methods of generating large strings (i.e. web pages).
      (Review ID: 85035)
      ======================================================================

      Name: skT88420 Date: 11/22/99


      java version "1.2.1"
      Solaris VM (build Solaris_JDK_1.2.1_03, native threads, sunwjit)


      While compiling a file with javac, the compiler generated an exception as
      outputed following text:
      java.io.UTFDataFormatException
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Exception.<init>(Compiled Code)
              at java.io.IOException.<init>(IOException.java:35)
              at java.io.UTFDataFormatException.<init>(UTFDataFormatException.java:37)
              at java.io.DataOutputStream.writeUTF(Compiled Code)
              at sun.tools.asm.StringConstantData.write(Compiled Code)
              at sun.tools.asm.ConstantPool.write(Compiled Code)
              at sun.tools.javac.SourceClass.compileClass(Compiled Code)
              at sun.tools.javac.SourceClass.compile(Compiled Code)
              at sun.tools.javac.Main.compile(Compiled Code)
              at sun.tools.javac.Main.main(Main.java:733)
      error: An exception has occurred in the compiler; please file a bug report
      (http://java.sun.com/cgi-bin/bugreport.cgi).
      1 error

      Th efile I tried to compile is of 623381 bytes
      (Review ID: 98088)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              iris Iris Clark
              iris Iris Clark
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: