Proposal: #DefaultModule
mark.reinhold at oracle.com
mark.reinhold at oracle.com
Tue Jul 19 21:09:08 UTC 2016
2016/7/13 9:25:54 -0700, david.lloyd at redhat.com:
> On 07/13/2016 09:32 AM, mark.reinhold at oracle.com wrote:
>> ...
>>
>> If this is correct then there's a simpler way to reach your goal: Enhance
>> class loaders to have optional names. When the run-time system generates
>> a stack trace or an exception message that mentions a module name and
>> version, if present, then it could also insert the name of that module's
>> class loader, if present. This would allow an external module system to
>> provide better diagnostics without having to change the JPMS design in a
>> fundamental way.
>>
>> Would that meet your needs?
>
> I think that would probably work very well, and fits in nicely with the
> existing architecture of stack trace assembly as I understand it (since
> the class loader can be directly referenced from the Class, which is
> already present). Thanks!
New issue: http://openjdk.java.net/projects/jigsaw/spec/issues/#ClassLoaderNames
- Mark
More information about the jpms-spec-observers
mailing list