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

Summary: Debugger stops at 3rd line after Step In on 3rd expression
Product: debugger Reporter: ulfzibis <ulfzibis>
Component: CodeAssignee: Daniel Prusa <dprusa>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: "Step In" default on 3rd expression

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