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
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
- links to
-
Review openjdk/jdk/19838