| [news.eclipse.tools.jdt] Re: Syntax error on token "assert" even though compliance is 1.4 |
I'm using Eclipse 3.0M7 on Mac OS X 10.2.8 (JVM 1.4.1).
Even though Properties/Java Compiler/Compliance and Classfiles/Compiler
Compliance Level is set to 1.4, assert statements are causing this error:
Syntax error on token "assert", assert expected
I tried various permutations on the Compliance tab to no effect.
To compile assert statements, you need: - compliance set to 1.4 - source level set to 1.4 - target platform set to 1.4 - assert as an identifier set to error.