Bug 24833 - TODO: not detected if there is only a comment in .java file
Summary: TODO: not detected if there is only a comment in .java file
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: 23096
Blocks:
  Show dependency tree
 
Reported: 2002-10-16 09:53 EDT by David Audel CLA
Modified: 2002-11-13 06:17 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 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.