Community
Participate
Working Groups
public void method (int x) { assert ( x > 0 ); //should throw assert exception
if call AST.parseCompilationUnit(), eclipse will throw IllegalArgumentException.
This is a known issue that has been fixed in 3.0 stream. The workaround in 2.1 stream is to remove the parenthesis around the condition. They are useless.
Close as duplicate of bug 38732. *** This bug has been marked as a duplicate of 38732 ***