[foreign] NPE when trying to lookup a symbol in the default library when no libraries are loaded
Jorn Vernee
jbvernee at xs4all.nl
Wed Sep 12 17:45:31 UTC 2018
Sundararajan Athijegannathan schreef op 2018-09-12 19:41:
> I tried the following on Mac.
>
> $ jshell
>
> | Welcome to JShell -- Version 12-internal
> | For an introduction type: /help intro
>
> jshell> import java.foreign.*;
>
> jshell> Libraries.getDefaultLibrary().lookup("");
> | Exception java.lang.NoSuchMethodException: Cannot find symbol in
> library <default>
> | at ClassLoader$NativeLibrary.lookup (ClassLoader.java:2428)
> | at (#2:1)
>
>
> I got the NSME as expected. It seems either it is Windows specific or
> perhaps not the latest panama build [just guessing]
>
> Thanks,
> -Sundar
In jshell I'm also seeing an NSME, so I guess jshell is loading a native
library.
I'm just compiling a file with the code to repro in the main, and
getting and NPE.
Jorn
More information about the panama-dev
mailing list