History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-15253
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Eugene Zhuravlev
Reporter: Jordan Zimmerman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Post-increment values can get incorrectly incremented by the Debugger

Created: 24 Feb 07 12:34   Updated: 04 Apr 07 21:52
Component/s: Debugger
Fix Version/s: Selena 6808 (pre-M1)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,708
Fixed in build: 6,800
Severity: Extreme


 Description  « Hide
Run the following test in the debugger. As you step, notice that the Debugger puts "b[x++]" into the Variables panel. Each step will cause "x" to increment quickly causing an out of bounds exception.

public static void main(String[] args) throws Exception
{
byte[] b = new byte[4];
int x = 0;
for ( int i = 0; i < b.length; ++i )

{ b[x++] = (byte)i; }

}



 All   Comments   Work Log   Change History      Sort Order:
Eugene Zhuravlev - 14 Mar 07 21:31
Workaround - switch from "auto-vars" to "all-variables" mode.