This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps (btw attached picture shows it best): 1) Open lexer module. 2) Renamed SimpleJavadocTokenId to TestJavadocTokenId. 3) In TokenSequenceListTest occurrences were renamed properly but as a side effect "-1" became "1" on these lines.
Created attachment 41225 [details] Picture showing the diff and problematic behavior
Daily build 070419. As I think about it more, this is a bit dangerous because it may generate hidden errors that may be hard to find. Therefore changing to P2. Feel free to downgrade.
Definitely P2, reproducible. Positions for the literal '-1' are incorrect.
Adding Dusan to cc to help with evaluation. Write variable to source, e.g. 'int i = -10;' and look at the INT_LITERAL in Navigator-Trees view. Just number 10 is highlighted in editor. I can make a special condition in generator for such cases, but I'll wait for Dusan's evaluation.
Test Checking in test/unit/src/org/netbeans/api/java/source/gen/BodyStatementTest.java; /cvs/java/source/test/unit/src/org/netbeans/api/java/source/gen/BodyStatementTest.java,v <-- BodyStatementTest.java new revision: 1.29; previous revision: 1.28 done
Breaking sources => increasing priority to P1.
Fixed.