RFR(S) 8172288: Fix error message when trying to define an existing package to a module

Alan Bateman Alan.Bateman at oracle.com
Tue Jan 10 15:12:46 UTC 2017


On 10/01/2017 15:02, harold seigel wrote:

> Hi,
>
> Please review this small fix for JDK-8172288.  Here's a sample of the 
> new message:
>
> Package mypackage6 for module dupl.pkg.module is already in another 
> module, Module_A, defined to the class loader
>
> Adding the class loader name to the message will be done as part of 
> JDK-8169559 <https://bugs.openjdk.java.net/browse/JDK-8169559>.
>
> Open Webrev: 
> http://cr.openjdk.java.net/~hseigel/bug_8172288/webrev/index.html
IllegalArgumentException isn't a good exception for these cases, is now 
the time to proposing this too?

-Alan


More information about the hotspot-runtime-dev mailing list