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.
Summary: | "-1" changed to "1" during rename refactoring | ||
---|---|---|---|
Product: | java | Reporter: | Miloslav Metelka <mmetelka> |
Component: | Source | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Picture showing the diff and problematic behavior |
Description
Miloslav Metelka
2007-04-19 10:13:28 UTC
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. |