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

compiler emits bad string literals in constant pool for long strings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: