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.

Bug 115541 - Negative numbers are removed after reformat code
Summary: Negative numbers are removed after reformat code
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-14 12:36 UTC by ehucka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2007-09-14 12:36:52 UTC
Product Version: NetBeans IDE Dev (Build 20070914082735) Java: 1.6.0_02; Java HotSpot(TM) Server VM 1.6.0_02-b05 System:
Linux version 2.6.20-15-generic running on i386; UTF-8; en_US (nb)

Example:

int number = -1;

If I invoke Reformat code on such source the '1' is removed:
Result:

int number = -;
Comment 1 Dusan Balek 2007-09-14 13:57:19 UTC
Fixed.

Checking in VeryPretty.java;
/cvs/java/source/src/org/netbeans/modules/java/source/pretty/VeryPretty.java,v  <--  VeryPretty.java
new revision: 1.63; previous revision: 1.62
done
Comment 2 ehucka 2007-09-25 09:08:07 UTC
verified