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 256687 - Hex byte 0x89 = octal 0111
Summary: Hex byte 0x89 = octal 0111
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-19 12:05 UTC by tilman
Modified: 2016-02-01 15:56 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 tilman 2015-11-19 12:05:02 UTC
I have a byte[4] array. The contents are displayed as 0, -119, 0, 13 in the debugger. In hex they are displayed at 0, 0x89, 0, 0xd. In octal they are displayed as 00, 0111, 00, 015. The "0111" is incorrect, this should be "0211".

After writing this, I retested with a single byte with this code:

byte b1 = (byte) 0x89;

and with this:

byte b1 = (byte) 0211;

Same problem, octal is displayed as 0111.
Comment 1 Martin Entlicher 2015-11-20 14:57:21 UTC
Fixed by changeset:   293867:fa28aef67f3f
http://hg.netbeans.org/core-main/rev/fa28aef67f3f
Comment 2 Quality Engineering 2015-11-21 03:05:53 UTC
Integrated into 'main-silver', will be available in build *201511210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fa28aef67f3f
User: mentlicher@netbeans.org
Log: #256687: Correct the octal representation of byte and short types.
Comment 3 Jiri Prox 2015-12-17 11:19:20 UTC
verified in trunk
Comment 4 Martin Entlicher 2016-01-14 14:32:09 UTC
The fix is transplanted into release81 branch:
http://hg.netbeans.org/releases/rev/f1a3dfbe5991
http://hg.netbeans.org/releases/rev/1e93283cc41f