Nashorn on the module-path

Alan Bateman Alan.Bateman at oracle.com
Thu May 16 13:21:59 UTC 2019


On 16/05/2019 05:02, Christian Stein wrote:
> :
>
> I guess(!), it boils down to swallowed illegal access exception
> that happens when a simple Java object is put into a Binding.
> Running on the class-path, an instance of SimpleDynamicMethod
> from package "jdk.dynalink.beans" is wrap around a method
> of the bound object. When running on the module-path, the
> type within the Nashorn is reported as: "undefined".
>
Can you run with -Dsun.reflect.debugModuleAccessChecks and see if 
anything is printed? This can be useful to locate exception swallowing. 
Given that Nashorn is using method handles it might not help but would 
be useful to try.

-Alan


More information about the jigsaw-dev mailing list