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.
Summary: | Watch experession is evaluated more than once | ||
---|---|---|---|
Product: | debugger | Reporter: | _ lcincura <lcincura> |
Component: | Code | Assignee: | issues@debugger <issues> |
Status: | CLOSED FIXED | ||
Severity: | blocker | Keywords: | REGRESSION |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ lcincura
2004-03-25 10:09:42 UTC
This has been fixed already. There is a minor change in the new expression evaluator: ++,-- and assignment operators never change values of their operand variables during watch evaluation. Verified on build 200407201800 It is there again, but in some other scenario. Consider code for (int i=0; i<10; i++) { hmap.put(""+i, i+".item"); } Put breakpoint somwhere after the code and make debugger to hit it. Now create watch with expression hmap.put("6", "test") => the watch has value "test", which means it was evaluated more than once (first evaluation would return "6.item" and it works in NB3.6) fixed in trunk Verified in 4.2 build 200507061800 |