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.
When Gandalf generates code that involves class constants, like, e.g. the EAST, WEST, NORTH, etc. constants of java.awt.BorderLayout or the LOWERED and RAISED constants of BevelBorder, it generates code containing the values instead of the names of the constants. I.e., instead of jLabel.setBorder(new BevelBorder(BevelBorder.LOWERED)); or jPanel.add(jLabel, BorderLayout.SOUTH); it generates jLabel.setBorder(new BevelBorder(1)); or jPanel.add(jLabel, "South"); This is extremely bad coding as it runs counter to what these constants are there for, i.e. NOT having to deal with the values in the first place, thereby making the code less error-prone and more portable across releases of the JDK as well as independent from implementation details.
Priority is changed to P4 (normal).
In [nb31](34) is fixed and now verified : - generation border position is right, for position is generated e.g. BorderLayout.SOUTH This bug is reopen, because: - for BevelBorder isn't gerated whole : setBorder(new BevelBorder(BevelBorder.LOWERED)) but only setBorder(new BevelBorder(1))
Fixed.
verified in [nb-dev](132), [pilsen](010222)
Resolved for 3.3.x or earlier, no new info since then -> closing.