Bug 110751 - [AspectJ] Problems with jdk 5 enhanced loop
Summary: [AspectJ] Problems with jdk 5 enhanced loop
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 1.3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.3.0   Edit
Assignee: Matt Chapman CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-26 22:09 EDT by Eduardo Rocha CLA
Modified: 2005-11-04 09:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Rocha CLA 2005-09-26 22:09:52 EDT
[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.
Comment 1 Matt Chapman CLA 2005-11-04 09:16:16 EST
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