Review request 8153665: URLClassLoader.definePackage() not throwing expected IAE

Alan Bateman Alan.Bateman at
Fri Apr 8 19:54:09 UTC 2016

On 08/04/2016 19:48, Mandy Chung wrote:
> The spec of java.lang.Package and ClassLoader::definePackage have been changed in jdk-9+111 such that Package objects are defined per class loader and no longer inspect what packages are defined in the class loader hierarchy.
> The spec of URLClassLoader::definePackage(String name, Manifest man, URL url) should also be changed accordingly.
> Webrev at:
This looks fine. For the SplitPackage test then you could use @library 
to use CompilerUtils and drop the compile method.


More information about the core-libs-dev mailing list