Relates :
|
Many test package names are same as nashorn source package names (eg. jdk.nashorn.api.scripting, jdk.nashorn.internal.runtime). It is better to avoid this: 1) We don't have any package-private access from tests to nashorn internal, package-private classes 2) Even though same package name is used, nashorn is loaded by boot loader or extension loader (depending on jdk version) and tests are loaded by launcher loader and so these are different runtime packages anyway. Any confusion within IDE ("same package " as seen in IDE) can be avoided by different package names. 3) In a modular (jigsaw) world, we need to avoid this package name collision b/w source and test classes.