<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;">Two additional useful information</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><ul data-editing-info="{"orderedStyleType":1,"unorderedStyleType":2}"><li style="list-style-type: "- ";"><span>this happens with macOS JDK only (tried ARM but not x86). No problem with Windows and Linux</span></li><li style="list-style-type: "- ";"><span>I get the problem both from Eclipse and when building from command line with Maven :</span></li></ul><div><span><br></span></div><div><span><br></span></div><div><span><span>java.lang.Error:</span><div><span>Unresolved compilation problems:</span></div><div><span> The type java.nio.ByteBuffer cannot be resolved. It is indirectly referenced from required type org.jzy3d.painters.IPainter</span></div><div><span> The import java.nio.ByteBuffer cannot be resolved</span></div><div><span> The type PanamaGLPainter must implement the inherited abstract method IPainter.drawImage(ByteBuffer, int, int, Coord2d, Coord3d)</span></div><div><span> ByteBuffer cannot be resolved to a type</span></div><div><br></div><span> at org.jzy3d.painters.PanamaGLPainter.<init>(PanamaGLPainter.java:1)</span><br></span></div><div><span><br></span></div></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">
Envoyé avec la messagerie sécurisée <a target="_blank" href="https://proton.me/" rel="noopener noreferrer">Proton Mail.</a>
</div>
</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div class="protonmail_quote">
Le samedi 11 mai 2024 à 10:08 AM, Martin Pernollet <martin.pernollet@protonmail.com> a écrit :<br>
<blockquote class="protonmail_quote" type="cite">
<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 title="PixelFormat.getByteBgraInstance()" href="https://openjfx.io/javadoc/22/javafx.graphics/javafx/scene/image/PixelFormat.html#getByteBgraInstance()" rel="noreferrer nofollow noopener" target="_blank">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 style="font-family: Arial, sans-serif; font-size: 14px;" class="protonmail_signature_block">
<div class="protonmail_signature_block-user protonmail_signature_block-empty">
</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 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>
</blockquote><br>
</div>