Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 259302

Summary: [debug] editing longs only allows values within the int range
Product: [Eclipse Project] JDT Reporter: Patrick <patrickmoench>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: darin.eclipse, Mike_Wilson
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Patrick CLA 2008-12-18 14:58:16 EST
Build ID: M20080911-1700

Steps To Reproduce:
1. Create a program that uses a long
long longValue = Long.MAX_VALUE;
System.out.println("Long Value: " + longValue);

2. Set a breakpoint on the println line
3. Run->Debug
4. Attempt to change longValue from 9223372036854775807 to 9223372036854775806 (subtract one).
5. The following error message pops up
"The literal 9223372036854775806 of type int is out of range"
Comment 1 Mike Wilson CLA 2009-05-05 12:36:48 EDT
Changing Version tag to something more believable.
Comment 2 Darin Wright CLA 2009-06-17 12:19:19 EDT
The workaround is to specify "9223372036854775806L". The debugger is interpretting the value as a literal, and without the "L" it is interpretted as an int rather than a long.
Comment 3 Eclipse Genie CLA 2020-02-11 12:22:12 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.