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

revert fix for JDK-8334488 which introduced a regression

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 23
    • 23
    • 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

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

              Created:
              Updated:
              Resolved: