ResourceScope missing OS/X
Jorn Vernee
jorn.vernee at oracle.com
Mon Mar 27 11:45:35 UTC 2023
A concise description of the changes in 19 and 20 can be found in the
CSRs of the JEPs in those releases:
19: https://bugs.openjdk.org/browse/JDK-8282192
20: https://bugs.openjdk.org/browse/JDK-8295045
ResourceScope has been replaced by MemorySession in 19, and later
SegmentScope/Arena in 20 [1]. MemoryAddress has been merged into
MemorySegment [2]
HTH,
Jorn
[1]: https://cr.openjdk.org/~mcimadamore/panama/session_arenas.html
[2]: https://cr.openjdk.org/~mcimadamore/panama/segment_address.html
On 26/03/2023 16:18, Michael Hall wrote:
>
>
>> On Mar 26, 2023, at 5:07 AM, Duncan Gittins
>> <duncan.gittins at gmail.com> wrote:
>>
>> It looks like you have used jextract which was not built for JDK20,as
>> ResourceScope class is from earlier JDK version.
>> You'll need to build and generate with a JDK20 compatible jextract or
>> wait for the team to drop a compatible build here:
>> https://jdk.java.net/jextract/
>>
>> Kind regards
>>
>> Duncan
>
> It appears you were correct to begin with. I removed the opengl target
> directory, regenerated, and compiled without errors.
> But if MemoryAddress also is gone I probably need to go back to prior
> code where I used it.
> Is there a replacement?
> I scanned the mailing list archives and saw no mention of either
> ResourceScope or MemoryAddress as topics. Is there someplace to track
> API changes?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20230327/5a9c09af/attachment.htm>
More information about the jextract-dev
mailing list