Bug 97402 - Save Failed: org.eclipse.jdt.internal.compiler.ast.LocalDeclaration
Summary: Save Failed: org.eclipse.jdt.internal.compiler.ast.LocalDeclaration
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-31 04:55 EDT by Benjamin Pasero CLA
Modified: 2005-06-09 10:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Pasero CLA 2005-05-31 04:55:16 EDT
Version: 3.1.0
Build id: I20050527-1300 (RC1)

Steps to reproduce:
1.) Have a Class Foo like this:

public class Foo {
	private static void foo() {
		 @interface Bar {
			public String bar = "Hu";

		}
	}
}

2.) Save

Actual Results:
Error Dialog showing with the message:
Save Failed: org.eclipse.jdt.internal.compiler.ast.LocalDeclaration

Expected Results:
No error Dialog

Regards,
Ben
Comment 1 Dani Megert CLA 2005-05-31 09:30:12 EDT
Two bugs here:
1. a CCE in Java Core (filed bug 97459)
2. editor should protected against this and save to disk

Note that once the editor allows to save other non-editor related user action
like selection the file in the Package Explorer will cause lots of error dialogs.
Comment 2 Dani Megert CLA 2005-05-31 09:31:24 EDT
Approving for RC2.
Comment 3 Dani Megert CLA 2005-06-01 04:26:11 EDT
Fixed in HEAD.
Comment 4 Tobias Widmer CLA 2005-06-09 10:18:37 EDT
Verified using N20050609-0010