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

compiler emits bad string literals in constant pool for long strings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • tools
    • generic
    • generic

      In releases prior to jdk1.3, long string literals, e.g., >32 or >64 K characters, caused a compiler crash (4056998, 4210937). As of jdk1.3,
      the compiler does not crash, but may create an invalid class file, as the
      class file format provides only 2 bytes for the length of the UTF-8 encoded
      string. The VM then complains when a program containing such a literal
      is executed.

            gafter Neal Gafter (Inactive)
            wmaddoxsunw William Maddox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: