import java.base "8";
--
You received this message because you are subscribed to the Google Groups "ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-users+unsubscribe@googlegroups.com.
To post to this group, send email to ceylon...@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/7c8d7559-76d7-4ae4-986b-543559a7de0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nicolai, are you sure you are working with a Java 8 compiler?(Either by checking the project settings of your IDE or by typing `java -version` in the CLI)
-Tako
On Thu, Sep 22, 2016 at 9:26 PM, Nicolas Corai <nicola...@gmail.com> wrote:
When compiling a project that contains Java and Ceylon code, the Ceylon compiler trips on all the Java-8-specific code with the error messages like:
error: Ceylon backend error: lambda expressions are not supported in -source 1.7
(use -source 8 or higher to enable lambda expressions)
That message is confusing. To me, the --source parameter is an alias to --src and I have found no obvious place to specify the Java level for the ceylon compiler, besides
import java.base "8";
Invoking 'ceylon compile -source 8 my.module' as suggested expectedly results in error message
ceylon compile: Invalid module name or source file: 8
What should I do?
Thanks,
- N -
--
You received this message because you are subscribed to the Google Groups "ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-users...@googlegroups.com.
I can reproduce the problem without any Eclipse, just using ceylon compile. I think the problem might be that we always set our embedded javac to 1.7.
However, this works:
ceylon compile --javac='-source=1.8' --javac='-target=1.8' tmp
(Without the target flag, you get a nasty CompilerBugException.)
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/61719aa6-256a-47a2-ae39-a01f8ad3ed8f%40googlegroups.com.
[compiler]
source=src
source=test
resource=resource
javac=-source=8
javac=-target=8
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-users+unsubscribe@googlegroups.com.
To post to this group, send email to ceylon...@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/0498e62f-e806-4e15-b3ce-bcc400a3d78d%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-users+unsubscribe@googlegroups.com.
To post to this group, send email to ceylon...@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/CAP7PoCcV4a-PhytJmwJPGbLa4O6peevROx2pW1pK9m_ErjfgVg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/CAOJRyvrioi%3DFP8G80KEHBYWBGgwMEOWS-1049FwFf9raixfY%3DQ%40mail.gmail.com.