[foreign] NPE when trying to lookup a symbol in the default library when no libraries are loaded
jbvernee at xs4all.nl
Wed Sep 12 20:54:50 UTC 2018
> Yeah - was just about to write that.
> I think currently we rely on RTLD_DEFAULT which is available in mac
> and linux. But I don't think it's very portable and I've read too that
> it doesn't work too well with Windows.
> I think a more robust alternative would be to always explicitly denote
> the library name - as JNR does. For instance, if you want the standard
> C lib, just loadLibray("c"). E.g. remove the getDefaultLibrary()
> method from the API.
Yeah, I agree, that also prevents ambiguities when the same symbol is
loaded from different libraries.
Thanks for thinking along :) (sorry for being a distraction).
More information about the panama-dev