I have the following function in java:
private static Predicate<SomeObject> isNotCancelled() {
return i -> !i.getStatus().equals("Cancelled");
}
When using the following activator commands: compile, run, test or testOnly. Everything works well, no compilation error and the app works just as I expected.
But when I do activator testProd or activator stage the following error occurs:
[error] /path_to_class/SomeClass.java:34: error: illegal start of expression
[error] return i -> !i.getStatus().equals("Cancelled")
[error] ^
Can someone help me understanding why this is happening?
Thanks in advance.
I solved this issue by upgrading activator, sbt and play versions to: