Community
Participate
Working Groups
Build 20040226 Here a baffling error: "Syntax error on token "assert", assert expected." package org.eclipse.jdt.core.dom; public class Main { public static void main(String[] args) { assert true; // syntax error } } I get this error when compiling in 1.4 mode with source=1.4, class files=1.4, "assert" as identifier=error.
I was being fooled. The project with the code had non-default compiler setting and was still in 1.3 source more. I had only changed the global default setting. Never mind.