Sunday 15 August 2010

Java xtend funny compile error : This expression is not allowed in this context, since it doesn't cause any side effects -


I have an error that I can not understand: This expression is not allowed in this context, because it ' Causes any side effects. Here is the scenario in which the compile error increases. (Verification MustReturnTrue ()) {continue; // This is an error in the line error}}

This is a simple for in which I have the next result on a certain condition < / P>

What does that mean?

And how can you continue the next value in Xtend? Found this group discussion on the issue. . Continue is not supported in Xtend, but what does the error mean?

Your continue does not change the control flow, there is no code Which prevents it from executing.

Try adding some code inside the if inside the loop and see if you still get the error.


No comments:

Post a Comment