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 175933 - Strange debugging steps
Summary: Strange debugging steps
Status: CLOSED DUPLICATE of bug 168365
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-02 13:13 UTC by jojjeb
Modified: 2010-05-06 08:02 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 jojjeb 2009-11-02 13:13:25 UTC
Strange debugging behavour:

------------------------code like-------------

    public boolean isInputFieldsOk( Vector<String> in )
    {
        boolean res = true;
        String notAllowed = new String("00:00");
        for(String str : in)
        {
            if( str.equalsIgnoreCase(notAllowed) == true)
            {
                res  = false;
                break;
            }
        }
        return res;
    }

------------------------

When running above code in debug and break points set on line :

        for(String str : in)

and 

                break;

Evan though the comparission is false, the debugger jumps to the break; statement within the if statement.

/j
Comment 1 Daniel Prusa 2009-11-02 13:23:03 UTC
Seems like a duplicate of issue 168365.

*** This issue has been marked as a duplicate of 168365 ***
Comment 2 Marian Mirilovic 2010-05-06 08:02:42 UTC
verified duplicate