Bug 97402 Save Failed: org.eclipse.jdt.internal.compiler.ast.LocalDeclaration
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
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
*/
			public void beginReportingSequence() {
				ProblemRequestorState state= (ProblemRequestorState) fProblemRequestorState.get();
				if (state == null)
					internalBeginReporting(true);
			}
			/**
			 * Sets up the infrastructure necessary for problem reporting.
			 *
			 * @param insideReportingSequence <code>true</code> if this method
			 *            call is issued from inside a reporting sequence
			 */
			private void internalBeginReporting(boolean insideReportingSequence) {
				if (fCompilationUnit != null && fCompilationUnit.getJavaProject().isOnClasspath(fCompilationUnit)) {
					ProblemRequestorState state= new ProblemRequestorState();
					state.fInsideReportingSequence= insideReportingSequence;
					state.fReportedProblems= new ArrayList();
					synchronized (getLockObject()) {
						fProblemRequestorState.set(state);
						++fStateCount;
					}
				}
			}
			/*
			 * @see IProblemRequestor#acceptProblem(IProblem)
			 */
			public void acceptProblem(IProblem problem) {
				if (fIsHandlingTemporaryProblems) {
					ProblemRequestorState state= (ProblemRequestorState) fProblemRequestorState.get();
					if (state != null)