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

Compiler crash when anonymous class instantiated in 'super()' call

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.3.0
    • tools
    • kestrel
    • generic
    • generic

      The following program causes an assertion failure in javac 1.3-beta:

      class Top {
        int x;
        class Dummy {
           Dummy(Object o) {}
        }
        class Inside extends Dummy {
          Inside() {
             super(new Object() { int r = x; }); // javac incorrect error msg
          }
        }
      }

      william.maddox@Eng 1999-10-06

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: