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

Mandy Chung mandy.chung at
Fri Apr 8 21:14:57 UTC 2016

> On Apr 8, 2016, at 12:54 PM, Alan Bateman <alan.bateman at> wrote:
> 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.

I could. Then I would have to move the .class files around.  It compiles a given source directory but I wanted to compile source files from the same directory in a different destination.   I could update the test either way.

More information about the core-libs-dev mailing list