System.loadLibrary and CLinker.lookup exception
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Wed Apr 27 10:25:32 UTC 2022
On 27/04/2022 11:22, Jack Andrews wrote:
> On Wed, 27 Apr 2022 at 19:27, Maurizio Cimadamore
> <maurizio.cimadamore at oracle.com> wrote:
>
> First, these are @CallerSensitive methods, which means the JDK keeps
>
>
> yes, the @CallerSensitive tags can be preserved
>
> need to downcast the Object parameter to either Path or String,
> depending on the case, which doesn't look great either.
>
>
> better than a "copy and paste". DRY. i'll open a PR :)
>
> but seriously, i'm happy to provide FFI use cases that can be
> incorporated into your tests.
> where are your tests, BTW?
Tests are in the "test/jdk/java/foreign" folder. The test named
"LibraryLookupTest" specifically covers these two methods.
Maurizio
> jack
More information about the panama-dev
mailing list