-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b64
In Jigsaw Milestone Ana, module boundaries will be enforced. Tests that use JDK internal APIs require adjustments to work with module boundaries.
In JNDI related tests (jdk/test/javax/naming jdk/test/com/sun/jndi), there are tests reported have dependency on internal APIs.
Tests need to be re-examined and update to work with module boundaries:
* If test is intent for doing white-box testing, test need to be updated with the method provided by JDK-8049424 (something like -XX:AddModuleExports=<module>/<package>)
* Otherwise to eliminate the dependency on internal API
com/sun/jndi/ldap/Base64Test.java
com/sun/jndi/ldap/LdapName/Case.java
com/sun/jndi/cosnaming/IiopUrlIPv6.java
com/sun/jndi/dns/Parser.java
com/sun/jndi/rmi/registry/RegistryContext/ContextWithNullProperties.java
com/sun/jndi/ldap/LdapUnicodeURL.java
com/sun/jndi/cosnaming/CNNameParser.java
com/sun/jndi/ldap/LdapName/UnescapeTest.java
com/sun/jndi/rmi/registry/RegistryContext/UnbindIdempotent.java (uses java/rmi/testlibrary/TestLibrary.java thus has dependency on sun.rmi.*)
(Above tests seems intent to test related internal APIs, in this case, test need to be updated with the method provided by JDK-8049424 (something like -XX:AddModuleExports=<module>/<package>) for doing white-box testing.)
In JNDI related tests (jdk/test/javax/naming jdk/test/com/sun/jndi), there are tests reported have dependency on internal APIs.
Tests need to be re-examined and update to work with module boundaries:
* If test is intent for doing white-box testing, test need to be updated with the method provided by JDK-8049424 (something like -XX:AddModuleExports=<module>/<package>)
* Otherwise to eliminate the dependency on internal API
com/sun/jndi/ldap/Base64Test.java
com/sun/jndi/ldap/LdapName/Case.java
com/sun/jndi/cosnaming/IiopUrlIPv6.java
com/sun/jndi/dns/Parser.java
com/sun/jndi/rmi/registry/RegistryContext/ContextWithNullProperties.java
com/sun/jndi/ldap/LdapUnicodeURL.java
com/sun/jndi/cosnaming/CNNameParser.java
com/sun/jndi/ldap/LdapName/UnescapeTest.java
com/sun/jndi/rmi/registry/RegistryContext/UnbindIdempotent.java (uses java/rmi/testlibrary/TestLibrary.java thus has dependency on sun.rmi.*)
(Above tests seems intent to test related internal APIs, in this case, test need to be updated with the method provided by JDK-8049424 (something like -XX:AddModuleExports=<module>/<package>) for doing white-box testing.)