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.
Summary: | Netbeans now creates empty names for every binding. This forces a runtime error due to duplicate names (i.e. multiple bindings with the name ""). | ||
---|---|---|---|
Product: | guibuilder | Reporter: | rhizomorph |
Component: | Binding | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PLATFORM |
Priority: | P3 | ||
Version: | 7.1.1 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
rhizomorph
2012-04-25 17:17:45 UTC
This seems to be some subtle (but annoying) problem of String in-place editor. I was able to reproduce this issue on JDK 7 only, it works fine on JDK 6. The empty name of the binding is set when you switch to the Advanced tab of the binding customizer and when the Name field gets a focus. I think we can consider empty string as no name. I've made a fix that does that. So if there is an empty string (whether set accidentally or knowingly), it is converted to null. I also noticed that canceling the dialog did not restore the original values correctly (if editing existing binding and changing some values not set before - then after cancel they were actually set). http://hg.netbeans.org/jet-main/rev/17f7dceff2f7 |