revert fix for JDK-8334488 which introduced a regression

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P3
    • 23
    • Affects Version/s: 23
    • Component/s: tools
    • None

      fix for JDK-8334488 which was backported from JDK 24 introduced a regression in javac. We propose to revert it. Basically code like:

      class Test {
          Test() {}

          Test(int a) {
              class InnerLocal {}
              new InnerLocal() {}; //compilation fails here
              this();
          }
      }

      should be accepted and it is being rejected after this backport

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: