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.
It happens when I try to execute project without project main class: 1. Mount project without project main class. 2. Go to 'Project->Execute project'. 3. 'Set Project Main Class' dialog appears. 4. Select any node (which can be set as a main class) and click 'Cancel' button. Expected result: main class isn't set and project isn't executed. Actual result: main class is set (last selected node) and project is executed. dev build 200302110100, JDK 1.4.1
Evaluation: annoying, but hramless. I am going to fix it for Nb 3.5.
Well, I don't fully agree with harmless. If user selects some class with significant impact on user data (deleting, processing, upload, ...) and then realizes that it should not be executed, selects Cancel and IDE executes that class anyway - it won't be harmless - somebody would want to eat keyboard :-)
Fixed in trunk. The mainclass property is modified only when user hits OK button.
Verified.