<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>A concise description of the changes in 19 and 20 can be found in
the CSRs of the JEPs in those releases:<br>
<br>
19: <a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-8282192">https://bugs.openjdk.org/browse/JDK-8282192</a><br>
20: <a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-8295045">https://bugs.openjdk.org/browse/JDK-8295045</a><br>
<br>
ResourceScope has been replaced by MemorySession in 19, and later
SegmentScope/Arena in 20 [1]. MemoryAddress has been merged into
MemorySegment [2]<br>
</p>
<p>HTH,<br>
Jorn</p>
<p>[1]:
<a class="moz-txt-link-freetext" href="https://cr.openjdk.org/~mcimadamore/panama/session_arenas.html">https://cr.openjdk.org/~mcimadamore/panama/session_arenas.html</a><br>
[2]:
<a class="moz-txt-link-freetext" href="https://cr.openjdk.org/~mcimadamore/panama/segment_address.html">https://cr.openjdk.org/~mcimadamore/panama/segment_address.html</a><br>
</p>
<div class="moz-cite-prefix">On 26/03/2023 16:18, Michael Hall
wrote:<br>
</div>
<blockquote type="cite" cite="mid:92C7C2FB-41C1-496A-A8CE-1D76C0A32919@gmail.com">
<br>
<div><br>
<blockquote type="cite">
<div>On Mar 26, 2023, at 5:07 AM, Duncan Gittins
<a class="moz-txt-link-rfc2396E" href="mailto:duncan.gittins@gmail.com"><duncan.gittins@gmail.com></a> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div dir="ltr">It looks like you have used jextract which
was not built for JDK20,as ResourceScope class is from
earlier JDK version.
<div>You'll need to build and generate with a JDK20
compatible jextract or wait for the team to drop a
compatible build here: <a href="https://jdk.java.net/jextract/" moz-do-not-send="true" class="moz-txt-link-freetext">https://jdk.java.net/jextract/</a></div>
<div><br>
</div>
<div>Kind regards</div>
<div><br>
</div>
<div>Duncan</div>
</div>
</div>
</blockquote>
<br>
</div>
<div>It appears you were correct to begin with. I removed the
opengl target directory, regenerated, and compiled without
errors.</div>
<div>But if MemoryAddress also is gone I probably need to go back
to prior code where I used it.</div>
<div>Is there a replacement?</div>
<div>I scanned the mailing list archives and saw no mention of
either ResourceScope or MemoryAddress as topics. Is there
someplace to track API changes?</div>
<br>
</blockquote>
</body>
</html>