hg: jdk9/dev/langtools: 8067886: Inaccessible nested classes can be incorrectly imported

jan.lahoda at oracle.com jan.lahoda at oracle.com
Tue Feb 24 15:13:52 UTC 2015


Changeset: f683944ffa42
Author:    jlahoda
Date:      2015-02-24 16:11 +0100
URL:       http://hg.openjdk.java.net/jdk9/dev/langtools/rev/f683944ffa42

8067886: Inaccessible nested classes can be incorrectly imported
Summary: Check type accessibility at the point of import when importing the type using type-import-on-demand.
Reviewed-by: mcimadamore, jfranck

! src/jdk.compiler/share/classes/com/sun/tools/javac/code/Scope.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TypeEnter.java
+ test/tools/javac/importscope/ImportInaccessible.java
+ test/tools/javac/importscope/ImportInaccessible.out



More information about the jdk9-dev-changes mailing list