Bug 24559 - TODO: items disappear when there is a syntax error in a method body
Summary: TODO: items disappear when there is a syntax error in a method body
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-09 07:43 EDT by Erich Gamma CLA
Modified: 2002-11-13 06:13 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 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.