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.
[1128], JDK 1.3.0-C, W2k Steps to reproduce: 1. Create new Field (popup New | Field) 2. In Name TextField type some invalid identifier (e.g. "my-field") 3. Press Enter 4. You'll get "The specified name is not a valid java identifier" message 5. There is new Field "newField" inserted into class -> but no field should be added
Bug still lives in [200111230645]
Target milestone -> 3.3.1.
Will try to solve, although there's no clear distinction between confirmed and cancelled operation since we depend on focus events.
The problem is much worse on JDK-1.4: since the FocusLost event arrives *after* the keyboard action (enter) has been processed, the properties of the new field are *not* updated at all -- field with the default "newField" name is always inserted on JDK-1.4, unless the user moves the focus prior to confirming (or uses mouse to press OK button). Fixed in trunk.
Fixed also in 3.3 branch
[200201090331] Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.