<div style="font-family: Arial, sans-serif; font-size: 14px;">Hi,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">In the process of migrating PanamaGL from JDK19 to JDK22 I am facing a weird issue : Eclipse can not import java.nio.ByteBuffer.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I initially faced this while trying to invoke <a href="https://openjfx.io/javadoc/22/javafx.graphics/javafx/scene/image/PixelFormat.html#getByteBgraInstance()" title="PixelFormat.getByteBgraInstance()">PixelFormat.getByteBgraInstance()</a> from OpenJFX 22. I reproduce this with a simple standalone class</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><div style="padding: 0px 0px 0px 2px; background-color: rgb(255, 255, 255);"><div style="font-family: Menlo; font-size: 12pt; white-space: pre; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><p style="margin:0"><span style="font-weight: bold; color: rgb(127, 0, 85);">import</span><span> java.nio.*; </span><span style="color: rgb(63, 127, 95);">// OK</span></p><p style="margin:0"><span style="font-weight: bold; color: rgb(127, 0, 85);">import</span><span> </span><span style="text-decoration:underline;text-decoration-color:#ff0080;text-decoration-style:wavy">java.nio.ByteBuffer</span><span>; </span><span style="color: rgb(63, 127, 95);">// The import can not be resolved</span></p><p style="margin:0"><br></p><p style="margin:0"><span style="font-weight: bold; color: rgb(127, 0, 85);">public</span><span> </span><span style="font-weight: bold; color: rgb(127, 0, 85);">class</span><span> TestBB {</span></p><p style="margin:0"><span>  </span><span style="font-weight: bold; color: rgb(127, 0, 85);">public</span><span> </span><span style="font-weight: bold; color: rgb(127, 0, 85);">static</span><span> </span><span style="font-weight: bold; color: rgb(127, 0, 85);">void</span><span> main(String[] </span><span style="color: rgb(106, 62, 62);">args</span><span>) {</span></p><p style="margin:0"><span>  }</span></p><p style="margin:0"><span>}</span></p><p style="margin:0"></p></div></div></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Browsing JDK content through Eclipse shows that the ByteBuffer class exist but trying to open it leads to an Eclipse exception (see screenshot)</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial, sans-serif; font-size: 14px;">
    <div class="protonmail_signature_block-user protonmail_signature_block-empty">
        
            </div>
    
            <div class="protonmail_signature_block-proton"><img alt="Capture d’écran 2024-05-11 à 09.31.59.png" class="proton-embedded" src="cid:699f4ff8@protonmail.com"><br></div><div class="protonmail_signature_block-proton"><br></div><div class="protonmail_signature_block-proton"><br></div><div class="protonmail_signature_block-proton">ByteBuffer already became a sealed class between JDK 17 and 19 so I presume this is not a reason for this problem.</div><div class="protonmail_signature_block-proton"><br></div><div class="protonmail_signature_block-proton">Any idea of what is happening here?</div><div class="protonmail_signature_block-proton"><br></div><div class="protonmail_signature_block-proton">Thanks in advance!</div><div class="protonmail_signature_block-proton"><br></div><div class="protonmail_signature_block-proton">Martin</div><div class="protonmail_signature_block-proton"><br></div><div class="protonmail_signature_block-proton"><br></div><div class="protonmail_signature_block-proton"><br></div>
</div>