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 98079 - Sub-expressions values remember only the last return value
Summary: Sub-expressions values remember only the last return value
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-03-16 13:01 UTC by ehucka
Modified: 2007-03-21 14:54 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 ehucka 2007-03-16 13:01:30 UTC
Example:

text.setText(msgMemory.format(new Object[] {
    convert(total),
    convert(free),
    new Integer(taken)
}));

If I step through the expression above by Step Over Expression the
'Sub-expressions values' node in Local variable view will contain always only
one node - the return value of just called method. The method call is underlined
in the expression.
The behavior was different before - Sub-expressions values node contained all
return values of the expression (5 sub-nodes for the example). 
Is it regression or desired behavior?
Comment 1 Martin Entlicher 2007-03-16 14:33:46 UTC
Well, I will look at it, if it behaves that way, it's certainly a regression.
Comment 2 Martin Entlicher 2007-03-16 18:11:17 UTC
I've reproduced the problem. The regression is associated with the latest
changes done in an attempt to fix issue #96519.
Comment 3 Martin Entlicher 2007-03-20 17:55:53 UTC
Fixed in trunk:

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/JPDAStepImpl.java,v
 <--  JPDAStepImpl.java
new revision: 1.9; previous revision: 1.8

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java,v
 <--  JPDAThreadImpl.java
new revision: 1.27; previous revision: 1.26
Comment 4 ehucka 2007-03-21 14:54:06 UTC
verified