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.
Generated code allocates new Boolean objects instead of using Boolean.TRUE and Boolean.FALSE. Generated code is then used at least in tomcatint and web modules. Likely AbstractCodeGeneratorClass needs to be improved to handle this better.
I changed "new Boolean(value)" to "value ? Boolean.TRUE : Boolean.FALSE" as requested.
I still see some usages like in tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/config/Context.java setValve(boolean[]) method. BTW: we can use Boolean.valueOf to avoid ternary terms and itis not neceseary to use fully qualified name of Boolean class because java.lang is automaticaly imported.
Libor, can you please look at this one? Thanks.
Added decision based on class used during generation of bean's setter method. In case of Boolean class, the static constant Boolean.TRUE or Boolean.FALSE is directly returned instead of calling Boolean(..) constructor. For J2ME platform, the Boolean(..) constructor is always used.
generated files in web & tomcatint seems to be OK now, thanks