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 156311 - Debugger stops at 3rd line after Step In on 3rd expression
Summary: Debugger stops at 3rd line after Step In on 3rd expression
Status: CLOSED DUPLICATE of bug 155097
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-05 22:17 UTC by ulfzibis
Modified: 2010-05-06 08:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
"Step In" default on 3rd expression (6.44 KB, image/jpeg)
2009-01-05 22:20 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2009-01-05 22:17:16 UTC
See following code snippet:
	Charset cs;
1	if ((cs = standardProvider.charsetForName(charsetName)) != null ||
2	    (cs = lookupExtendedCharset(charsetName))           != null ||
3	    (cs = lookupViaProviders(charsetName))              != null)

- I have breakpoint on line 1.
- After "Step In", marker is on 'lookupViaProviders()' in line 3
(Maybe there are good reasons having default on 3rd expression, but which? If 1st expression results true, 3rd
expression will be never reached)
- After 2nd "Step In", program enters 'charsetForName()' from 1st line, and stops not until in 3rd line of method
'charsetForName()'s code, but it should stop in 1st line.
Comment 1 ulfzibis 2009-01-05 22:20:20 UTC
Created attachment 75462 [details]
"Step In" default on 3rd expression
Comment 2 Martin Entlicher 2009-02-25 13:59:37 UTC
Dane, can you please look at what can be done about selection of conditional expressions?
Comment 3 Daniel Prusa 2009-10-08 15:37:02 UTC
This is a similar problem as that one described in issue 155097 - selection of methods is not handled correctly when
Step Into is performed for a ternary operator.
Both issues should be solved together. I will mark this as a duplicate of 155097.

*** This issue has been marked as a duplicate of 155097 ***
Comment 4 Marian Mirilovic 2010-05-06 08:02:16 UTC
verified duplicate