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

harold seigel harold.seigel at oracle.com
Tue Jan 10 15:18:05 UTC 2017


Yes.  I'll modify the bug to include that.

What exception should the JVM throw for this?

Thanks, Harold


On 1/10/2017 10:12 AM, Alan Bateman wrote:
> 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