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 202155 - Need validation on conditional breakpoint
Summary: Need validation on conditional breakpoint
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.1
Hardware: Macintosh Mac OS X
: P4 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-15 05:35 UTC by medeag
Modified: 2011-09-15 05:35 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description medeag 2011-09-15 05:35:14 UTC
The IDE should tell the users if they make mistake during  entering condition;

Let's consider following dummy example:


public class Test {
    public static void main(String[] args) {
        List<User> users = new ArrayList<User>();
        users.add(new User("a",45));
        users.add(new User("b",8));

        for (User user : users) {
            if (user.age<=45) {
                System.out.println(user.age);
                System.out.println(user.name);
            }
        }
    }
}

Let's assume that by mistake i added following condition :user.age=8 instead of user.age==8
 and put it on the   if (user.age<=45) { line.

The current output during debug will become:
8
a
8
b

The expected result should be error box saying that i condition i added to the breakpoint in not valid.

Thanks,
Medea