-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b143
Under JDK-8153362:
Add javac -Xlint warning to list exposed types which are not accessible
A new lint for javac is developed that warns about exported elements that refer to types that are potentially inaccessible to the client of the API (like package private or not exported types).
For jdk.jsobject, the warnings are:
---
/usr/local/home/lahvac/src/jdk/tl.precommit/jdk/src/jdk.jsobject/share/classes/netscape/javascript/JSObject.java:159: warning: [exports] class Applet in module java.desktop is not indirectly exported using requires public
public static JSObject getWindow(Applet applet) throws JSException {
^
error: warnings found and -Werror specified
1 error
1 warning
---
The lint will be disabled for jdk.jsobject. Please check if the warnings can be fixed, or needs to be suppressed.
Thanks.
Add javac -Xlint warning to list exposed types which are not accessible
A new lint for javac is developed that warns about exported elements that refer to types that are potentially inaccessible to the client of the API (like package private or not exported types).
For jdk.jsobject, the warnings are:
---
/usr/local/home/lahvac/src/jdk/tl.precommit/jdk/src/jdk.jsobject/share/classes/netscape/javascript/JSObject.java:159: warning: [exports] class Applet in module java.desktop is not indirectly exported using requires public
public static JSObject getWindow(Applet applet) throws JSException {
^
error: warnings found and -Werror specified
1 error
1 warning
---
The lint will be disabled for jdk.jsobject. Please check if the warnings can be fixed, or needs to be suppressed.
Thanks.
- relates to
-
JDK-8153362 Add javac -Xlint warning to list exposed types which are not accessible
-
- Closed
-