[foreign-preview] RFR: 8282873: Bring back SymbolLookup [v2]

Maurizio Cimadamore mcimadamore at openjdk.java.net
Thu Mar 10 22:10:07 UTC 2022


On Thu, 10 Mar 2022 22:00:44 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> Ah, i see. So they are not interchangeable as i thought, and the Path variant has to refer to an actual file location (relative or otherwise), where as the String might not? Might be worth clarifying that, and for the String variant it is not constrained as is the case for `System.loadLibrary`?

Exactly. One checks that the path exists - the other sends the string argument straight to dlopen/LoadLibrary (which is what sometimes is required). I'll try to add some clarifying text.

-------------

PR: https://git.openjdk.java.net/panama-foreign/pull/666


More information about the panama-dev mailing list