Jigsaw Enhancement RFR round #2: 8159145 Add JVMTI function GetModuleByPackageName

Alan Bateman Alan.Bateman at oracle.com
Wed Jun 22 17:45:36 UTC 2016



On 22/06/2016 18:09, stanislav lukyanov wrote:
> Hi Serguei,
>
> What is the expected behavior when passed string is not a valid 
> package name (e.g. contains illegal characters)?
> I think I'd expect JVMTI_ERROR_ILLEGAL_ARGUMENT to be returned in that 
> case.
>
> Now it looks like the method will return unnamed module not only for 
> an empty string
> but for any string that is not a known package name.
> If it's correct, I think the empty string case shouldn't be described 
> explicitly.
The empty string is the unnamed module case and so the function should 
always return the unamed module.

You question on whether this function checks for invalid identifiers is 
a good question as that is currently not specified.

-Alan


More information about the serviceability-dev mailing list