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 207373 - Hexadecimal literals change upon refactoring
Summary: Hexadecimal literals change upon refactoring
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.0.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 07:01 UTC by eimaiosatanas
Modified: 2012-05-12 09:55 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 eimaiosatanas 2012-01-17 07:01:40 UTC
If code that contains hexadecimal literals gets refactored, the literals are converted to base-ten literals. 

Please consider leaving these literals unchanged.
Comment 1 Jiri Prox 2012-01-18 07:02:51 UTC
reproducible


Product Version: NetBeans IDE Dev (Build 20120116-e397acbff74d)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
User directory: C:\Users\jprox\.netbeans\dev
Cache directory: C:\Users\jprox\.netbeans\dev\var\cache
Comment 2 Jan Lahoda 2012-04-23 06:36:59 UTC
Fixed in the NetBeans daily builds:
http://hg.netbeans.org/main-silver/rev/5b60cb9c3a9b
Comment 3 eimaiosatanas 2012-04-23 08:42:14 UTC
Thank you!

I haven't yet confirmed the fix, but I'll do that as soon as I get some time.
Comment 4 Quality Engineering 2012-04-23 09:58:07 UTC
Integrated into 'main-golden', will be available in build *201204230400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5b60cb9c3a9b
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #207373: a somewhat hacky way to copy literals verbatim into newly created files - would be better if it would use the standard "old trees" framework.
Comment 5 Quality Engineering 2012-05-12 09:55:50 UTC
Integrated into 'main-golden', will be available in build *201205120400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/cd415b8ccad2
User: Jan Lahoda <jlahoda@netbeans.org>
Log: ##207373: forgotten test.