RFR(S) 8172288: Fix error message when trying to define an existing package to a module
harold seigel
harold.seigel at oracle.com
Thu Jan 12 13:50:17 UTC 2017
Hi,
Please review this updated webrev for this bug. The updated webrev
includes a small JDK change and hotspot changes to throw the correct
exceptions.
New JDK webrev:
http://cr.openjdk.java.net/~hseigel/bug_8172288.jdk.2/webrev/index.html
New Hotspot webrev: http://cr.openjdk.java.net/~hseigel/bug_8172288.hs.2/
Note also that the bug has been re-titled to: Fix Jigsaw related
module/package error messages and throw correct exceptions
Thanks, Harold
On 1/10/2017 10:18 AM, harold seigel wrote:
> 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