Cannot reference super before supertype constructor has been called

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 18
    • Affects Version/s: 18
    • Component/s: tools
    • None
    • b07
    • 18
    • b27

      Pull request #4376 regressed compilation of all inner classes using <enclosing class>.super pattern in their constructor argument to fail with:
       error: cannot reference super before supertype constructor has been called

      Following source fragment can be used as a minimal test case:
          class EnclClass {
              class InnerClass extends Exception {
                  InnerClass() {
                      super(EnclClass.super.toString());
                  }
              }
          }

            Assignee:
            Adam Sotona
            Reporter:
            Adam Sotona
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: