Community
Participate
Working Groups
[1.3.0.20050926141225] Eclipse gives the message "Compilation unit has parse errors: 'Syntax error, insert "; ; ) Statement" to complete BlockStatements'. No changes applied.", when I execute the following test case: 1. New AspectJ Project; 2. New Aspect (Aspect.aj): public aspect Aspect { private void Cloneable.loop(Object[] objects) throws IOException { for (Object obj : objects) { obj.toString(); } } } 3. Ctrl + Shift + O (Organize imports); When I comment the for block the "Organize imports" feature works, and then when I uncomment the block after importing IOException, the aspect is saved correctly, and does not complain the error above.
Now fixed in 1.3.0 (doesn't apply to 1.2.1 as eclipse 3.0 doesn't support Java 5) BUILD COMPLETE - build.174 Date of build: 11/04/2005 13:40:42 Time to build: 34 minutes 22 seconds Last changed: 11/04/2005 13:24:16 Last log entry: 110751: Problems with jdk 5 enhanced loop