-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b156
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8174598 | 10 | Vyom Tewari | P3 | Resolved | Fixed | b01 |
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 java.naming, the warning is:
---
.../jdk9/jdk/src/java.naming/share/classes/javax/naming/CompoundName.java:156: warning: [exports] class NameImpl in module java.naming is not accessible to clients that require this module
protected transient NameImpl impl;
^
error: warnings found and -Werror specified
1 error
1 warning
---
The lint will be disabled for java.naming. Please check if the warning 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 java.naming, the warning is:
---
.../jdk9/jdk/src/java.naming/share/classes/javax/naming/CompoundName.java:156: warning: [exports] class NameImpl in module java.naming is not accessible to clients that require this module
protected transient NameImpl impl;
^
error: warnings found and -Werror specified
1 error
1 warning
---
The lint will be disabled for java.naming. Please check if the warning can be fixed, or needs to be suppressed.
Thanks.
- backport of
-
JDK-8176352 Release Note: Exported elements referring to inaccessible types in java.naming
-
- Closed
-
- backported by
-
JDK-8174598 Exported elements referring to inaccessible types in java.naming
-
- Resolved
-
- relates to
-
JDK-8153362 Add javac -Xlint warning to list exposed types which are not accessible
-
- Closed
-