Bug 8369 - Code assist stops to work after anonymous class
Summary: Code assist stops to work after anonymous class
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-24 09:52 EST by Dani Megert CLA
Modified: 2002-02-12 06: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 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.