Community
Participate
Working Groups
As an AspectJ project the following code shows an error (Red circle with 'x' in gutter margin) File[] srcFiles = srcDir.listFiles(); // FIXME Change to Java 5 code for(File file : srcFiles) { // for(int i = 0; i < srcFiles.length; i++) { // File file = srcFiles[i]; .... } The error messages are : Syntax error on token(s), misplaced construct(s) Syntax error on token ")", : expected If I "Remove AspectJ nature" for the project - this error disappears. Project Settings : AspectJ Compiler Enable Java 5 weaving behaviour (1.5) IS ticked Everything else is left at the defaults. AspectJ RunTime : /c:/eclipse/plugins/org.aspectj.runtime_1.5.0.20041214165937/aspectjrt.jar Thanks, Fintan
This is fixed in the AJ5 dev stream and in the latest AJDT milestone builds.