<div dir="ltr"><br><div>thanks for the tips Kasper,</div><div><br></div><div>looks like I will have to wait for Eclipse 23-06 or a milestone with java 20 support before it.</div><div><br></div><div>I can not get eclipse to import ScopedValue.</div><div><br></div><div>Thanks again for the hints, being this close to the bleeding edge is not for me :)</div><div><br></div><div>/davor</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 21, 2023 at 5:01 PM Kasper Nielsen <<a href="mailto:kasperni@gmail.com">kasperni@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
If you want proper Java 20 support from the Eclipse compiler.<br>
You will have to wait on a preview patch via Marketplace.<br>
or wait for Eclipse 23-06 to have full support for Java 20.<br>
<br>
However, you should be able to use ScopedValue without the patch.<br>
Make sure you have disabled "enable preview features for Java 19"<br>
for the compiler. And set the compliance level to 19. I'm running<br>
vanilla 2022-12 without any issues.<br>
<br>
/Kasper<br>
<br>
/Kasper<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Tue, 21 Mar 2023 at 15:09, Davor Hrg <<a href="mailto:hrgdavor@gmail.com" target="_blank">hrgdavor@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> thank you for the hint. It is my first time trying preview features.<br>
><br>
> Still this is only one half of my problem, I still can not get it to allow compliance level 20, only 19.<br>
> That is even with latest milestone build I could find.<br>
><br>
> It does not recognize ScopedValue.<br>
><br>
> thanks,<br>
><br>
> /davor<br>
><br>
><br>
><br>
> On Tue, Mar 21, 2023 at 1:22 PM Kasper Nielsen <<a href="mailto:kasperni@gmail.com" target="_blank">kasperni@gmail.com</a>> wrote:<br>
>><br>
>> > Is there a way to run jdk20 code in eclipse ?<br>
>> ><br>
>><br>
>> Really, the only thing you need is to run with "--enable-preview" it<br>
>> should work out of the box.<br>
>><br>
>> If you are running on the module-path add<br>
>> requires jdk.incubator.concurrent;<br>
>><br>
>> /Kasper<br>
</blockquote></div>