Community
Participate
Working Groups
Task tags defined in Preferences -> Java -> Task Tags that are strings starting with TODO and assigned other than Normal priority will not have their priorities correctly displayed in the 3rd. Task View column. To reproduce: 1) Define a task tag in Preferences -> Java -> Task Tags for the string TODO_HIGH and assign it High priority. 2) Define an additional task tag similar to step #1 for the string MYHIGHTAG and also assign it High priority. 3) Add 2 comment lines to a Java source file, one starting with the TODO_HIGH tag and the other starting with the MYHIGHTAG. 4) Note in Tasks view that the High priority icon is displayed for the MYHIGHTAG task and no icon (indicating normal) priority is displayed for the TODO_HIGH.
Martin, please investigate.
The task 'TODO_HIGH' gets matched as 'TODO', '_HIGH' already seems to be a part of the comment. Seems a bit too limiting. Moving to jdt.core
There are 2 bugs actually. In JDT Core, we incorrectly only allow task tags to be formed of letters or digits, and thus split it at the '_' character. We should use the Java identifiers conventions. On the colouring side, there is a similar bug which incorrectly highlights the TODO portion. Martin - Could you please enter a separate bug for the colouring ?
filed bug 51466 against the Java editor
Fixed.
Verified in I200403240010.