Bug 24559

Summary: TODO: items disappear when there is a syntax error in a method body
Product: [Eclipse Project] JDT Reporter: Erich Gamma <erich_gamma>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Erich Gamma CLA 2002-10-09 07:43:42 EDT
1) Start with:
	public void run(TestResult result) {
		//TODO:hkjhkhkj
		result.run(this);
	}
2) build
-> task appears in task list
3) change to:
	public void run(TestResult result) {
		{
		//TODO:hkjhkhkj
		result.run(this);
	}
->notice the syntax error
4) build
->the task disappears from the task list

My task comments should be independent of syntax errors inside a method body
Comment 1 Philipe Mulet CLA 2002-10-10 06:36:48 EDT
Currently, TODO tasks are only guaranteed to be detected if no syntax errors is 
present. May relax this limitation time permitting.
Comment 2 Olivier Thomann CLA 2002-10-21 09:57:12 EDT
Adding the checkTask check inside the checkAndReportBracketAnomalies method
reports properly the TODO: tasks even if the code contains syntax errors.
Comment 3 Olivier Thomann CLA 2002-10-22 14:51:43 EDT
Fixed and released in 2.1 stream.
Regression tests added.
Comment 4 David Audel CLA 2002-11-13 06:13:05 EST
Verified.