javac generates duplicate constant pool entries

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 1.4.2
    • Affects Version/s: 1.4.0
    • Component/s: tools
    • mantis
    • generic
    • solaris_8

      Try the following program to see how javac often generates duplicate
      constant pool entries.

      class T1 {
          int x;
      }

      class T2 extends T1 {
          {
              int a = x
                  + x + x + x + x
                  + x + x + x + x
                  + x + x + x + x
                  + x + x + x + x
                  + x + x + x + x
                  ;
          }
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: