Panama/foreign EA - May 2021
Paul Sandoz
paul.sandoz at oracle.com
Wed May 19 23:41:47 UTC 2021
See the section on restricted methods:
https://download.java.net/java/early_access/panama/docs/api/jdk.incubator.foreign/jdk/incubator/foreign/package-summary.html#restricted
Replace
-Dforeign.restricted=permit
with
--enable-native-access=ALL-UNNAMED
Hth,
Paul.
> On May 19, 2021, at 4:25 PM, Michael Bien <mbien42 at gmail.com> wrote:
>
> Hello,
>
> what would be the current ceremony to run a panama program?
>
> --enable-preview --add-modules jdk.incubator.foreign -Dforeign.restricted=permit -Djava.library.path=...
>
> worked until this build, getting
>
> Caused by: java.lang.IllegalCallerException: Illegal native access from module: UNNAMED
> at java.base/jdk.internal.reflect.Reflection.ensureNativeAccess(Reflection.java:113)
> at jdk.incubator.foreign/jdk.incubator.foreign.CLinker.getInstance(CLinker.java:129)
> at dev.mbien.jcriu.CRIUContextImpl.<clinit>(CRIUContextImpl.java:142)
> ... 70 more
>
> in the test of my toy project now. This might be related to the security manager changes - i couldn't find any notes.
>
> thanks! (i like the ResourceScopes)
>
> michael
>
>
> On 19.05.21 23:26, Maurizio Cimadamore wrote:
>> And... maybe it would be a good idea to actually include a link :-)
>>
>> https://jdk.java.net/panama/
>>
>> Maurizio
>>
>> On 19/05/2021 22:25, Maurizio Cimadamore wrote:
>>> Hi,
>>> We have just released another early-access Panama/foreign build, which includes all the goodies we've been working on so far, from API changes, to VM upcall optimizations, to jextract stability/usability improvements.
>>>
>>> Keep the feedback coming - we couldn't do this without your help and support.
>>>
>>> Cheers
>>> Maurizio
>>>
>
More information about the panama-dev
mailing list