Problems compiling the first class with Fibers
bren at juanantonio.info
bren at juanantonio.info
Mon Sep 23 18:11:33 UTC 2019
Neither:
$ javac --enable-preview FiberTest1.java
error: --enable-preview must be used with either -source or --release
$ javac FiberTest1.java
FiberTest1.java:6: error: cannot find symbol
try (var scope1 = FiberScope.open()) {
^
symbol: variable FiberScope
location: class FiberTest1
1 error
Maybe the JVM requires that Fiber, FiberScope, Continuations &
ContinuationsScope are as part of Java 13, at least for this branch.
In any case, after the second build with latest commits, the compiler
doesn´t find the classes but I see the classes in Intellij java.base /
java.lang.*
Juan Antonio
El 2019-09-23 19:55, Alan Bateman escribió:
> On 23/09/2019 18:52, bren at juanantonio.info wrote:
>> El 2019-09-23 19:51, bren at juanantonio.info escribió:
>>> :
>>>
>>> $ javac --enable-preview --release 13 FiberTest1.java
> I assume it will work if you drop `--release 13`. That option tells
> javac that you want JDK 13 but this feature is not in JDK 13.
>
> -Alan
More information about the loom-dev
mailing list