Re-examine ClassLoader.getPackage(s) methods

Mandy Chung mandy.chung at oracle.com
Sat Sep 26 18:28:41 UTC 2015


> On Sep 26, 2015, at 7:33 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> This looks good. I think I would lean more to deprecating getPackage as just too fragile and leads to difficult to diagnose bugs.

Are you also suggesting to deprecate ClassLoader::getPackages as well?
 
> BTW: I assume the proxy test is a separate change-set and not mean to be in this patch.

That test should be pushed as a separate changeset.  That test reveals a NPE thrown by definePackage and helps catching problem.

Mandy



More information about the jigsaw-dev mailing list