Review request 8153665: URLClassLoader.definePackage() not throwing expected IAE
Alan Bateman
Alan.Bateman at oracle.com
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:
> http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8153665/webrev.00/
>
This looks fine. For the SplitPackage test then you could use @library
to use CompilerUtils and drop the compile method.
-Alan
More information about the core-libs-dev
mailing list