Bug 24833

Summary: TODO: not detected if there is only a comment in .java file
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
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:
Bug Depends on: 23096    
Bug Blocks:    

Description David Audel CLA 2002-10-16 09:53:41 EDT
1) Add extra marker "todo" in preferences.
   Window>Preferences>Java>Compiler>Extra Markers

2) Create the X.java file with the following content
// todo nothing

3) The 'todo' tags is not detected.
Comment 1 Olivier Thomann CLA 2002-10-21 09:14:06 EDT
You need a carriage return after the line comment, otherwise it is not a line
comment. Having this done, it is simple to add the detection of TODO: tag inside
the line comment.
Comment 2 Olivier Thomann CLA 2002-10-21 09:45:42 EDT
In fact if the line comment ends with a line break, there is nothing to change.
Do we want to be able to report TODO: tasks inside line comments which are not
properly closed?
Comment 3 Olivier Thomann CLA 2002-10-21 09:58:34 EDT
To be consistent, we should check this kind of "invalid line comments" until bug
23096 is fixed.
Comment 4 Olivier Thomann CLA 2002-10-22 14:51:12 EDT
Fixed and released in 2.1 stream.
Regression tests added.
Comment 5 David Audel CLA 2002-11-13 06:17:17 EST
Verified.