Bug 8369

Summary: Code assist stops to work after anonymous class
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Dani Megert CLA 2002-01-24 09:52:19 EST
Here's a test case:

1. JUnit setup
2. Open TestCase
3. Goto the declaration of fName
4. Below enter the following code (anonymous class Test):
	private Test x= new Test() {
		/*
		 * @see Test#countTestCases()
		 */
		public int countTestCases() {
			return 0;
		}

		/*
		 * @see Test#run(TestResult)
		 */
		public void run(TestResult result) {
		}

	};
5. At this point you can save - but this does not change the result
6. Now try to add a second anonymous class:
	private Test y= new T<CODE ASSIST HERE>
==> code assist does not give hints (except templates)

I used code assist to enter the first peaces of above code.
Comment 1 Erich Gamma CLA 2002-01-24 10:47:54 EST
moving to JDT core for investigation
Comment 2 David Audel CLA 2002-02-12 04:40:49 EST
inMethodStack and inFieldInitializationStack are not initialized properly after 
recovery

Fixed.