A new build and a new structured concurrency API

Chris Plummer chris.plummer at oracle.com
Tue Nov 16 02:26:48 UTC 2021


Under Settings -> Java Compiler, make sure you add --enable-preview to 
"Additional command line parameters".

Under Project Structure -> Project Settings, make sure you choose "X - 
Experimental Features". Note my IntelliJ is a bit out of date. I assume 
at some point "18 (Preview) - Virtual Threads" will be made an option.

Chris

On 11/15/21 2:59 PM, Eric Kolotyluk wrote:
> Okay, my next problem is that IntelliJ keeps complaining
>
> C:\Users\ERIC\Documents\git\loom-lab\laboratory\src\main\java\net\kolotyluk\loom\Experiment00.java:4:28
> java: java.util.concurrent.StructuredExecutor is a preview API and is
> disabled by default.
>    (use --enable-preview to enable preview APIs)
>
> But I can find no way to convince IntelliJ to move forward. I have checked
> both Setting and Project Structure, and put " --enable-preview " everywhere
> I can think of. Is anyone else using IntelliJ with Loom?
>
> Cheers, Eric
>
> On Mon, Nov 15, 2021 at 1:52 PM Eric Kolotyluk <eric at kolotyluk.net> wrote:
>
>


More information about the loom-dev mailing list