Problems compiling the first class with Fibers

bren at juanantonio.info bren at juanantonio.info
Mon Sep 23 13:57:21 UTC 2019


Hi,

I am build for OSX and Linux the EA for project Loom but compiling by 
command line a simple example, I receive a compilation error:

public class FiberTest1 {

	public static void main(String[] args) {

		try (var scope1 = FiberScope.open()) {
			var fiber1 = scope1.schedule(() -> System.out.println("Hello 
World"));
		}
	}

}

javac FiberTest1.java

and the response is:

Error:(5, 35) java: cannot find symbol
   symbol:   variable FiberScope
   location: class FiberTest1

How to solve that issue?

Many thanks in advance

Juan Antonio


More information about the loom-dev mailing list