Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Compiling Java 8 with ecj

Bugzilla is your friend. Please file a bug report.

Dani



From:        Stefan Reich <stefan.reich.maker.of.eye@xxxxxxxxxxxxxx>
To:        jdt-core-dev@xxxxxxxxxxx
Date:        06.06.2017 18:16
Subject:        [jdt-core-dev] Compiling Java 8 with ecj
Sent by:        jdt-core-dev-bounces@xxxxxxxxxxx




Hey there,

I am relying heavily on ecj for local compilation or source-delivered programs in my "JavaX" Java dialect (http://javax.tinybrain.de).

ecj works great, however, I can't get it to compile Java 8 sources.

I am using ecj-4.6.3.jar and running the batch compiler.

It now seems to accept "-source 1.8", but doesn't find the interface "java.util.concurrent.Callable":

2. ERROR in /home/stefan/JavaX-Data/#1008794/main.java (at line 8)
    Callable<Boolean> attempt = () -> value2 > value;   
    ^^^^^^^^
Callable cannot be resolved to a type

The interface is there, as everything is running on Java 8 (Oracle JDK, Linux 64).

Demo program: http://tinybrain.de/1008794

Any ideas?

Stefan_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev



Back to the top