JLS 2e 6.6.2.2 permits access to a protected constructor via an anonymous
class instance creation expression only when the access occurs within a
subclass of the class in which the constructor is declared (or if the
declaration occurs within the same package as the access). This rule is
not enforced in JDK 1.3 or JDK1.2.x.
william.maddox@Eng 2000-03-10
class instance creation expression only when the access occurs within a
subclass of the class in which the constructor is declared (or if the
declaration occurs within the same package as the access). This rule is
not enforced in JDK 1.3 or JDK1.2.x.
william.maddox@Eng 2000-03-10
- duplicates
-
JDK-4244129 new with an anonymous class does not check that the constructor exists properly
- Closed