Community
Participate
Working Groups
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.
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.
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?
To be consistent, we should check this kind of "invalid line comments" until bug 23096 is fixed.
Fixed and released in 2.1 stream. Regression tests added.
Verified.