I am using Eclipse Mars. The JRE for Eclipse I am using is Oracle's Java 8
/usr/lib/jvm/java-8-oracle/jre and I have set the compiler compliance to
1.8 for the project and for Eclipse. However, when I try to write a lambda,
for example:
textField.addActionListener(evt -> Dialog.show("Title", "Body", "OK",
"Cancel"));
The build fails with
[javac]
/home/hvrigazov/Assistant/mobile/assistant/src/com/cognit/assistant/Assistant.java:43:
error: illegal start of expression
[javac] textField.addActionListener(evt -> Dialog.show("Title",
"Body", "OK", "Cancel"));
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/da48308f-919d-4369-a0cb-04b4d8668257%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.