You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The GUI Builder produces code for boxed primitive properties that is deprecated for removal #7049
FormDesignerGUI builder, also known as MatisseJava[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)kind:bugBug report or fix
When a JComponent has a property of type Long (not long) and a value is entered using the properties editor, the GUI Designer creates: component.setProperty(new java.lang.Long(123L));
Since the Long(long) constructor is deprecated for removal and manual boxing is not required, the following code should be generated instead: component.setProperty(123L);
This happens for all boxed primitive values except Boolean.
Furthermore, it is not possible to set a value to null using the Properties Editor. This also applies to Boolean.
Language / Project Type / NetBeans Component
Java
How to reproduce
Create a JComponent that contains a property of type Long, Integer, etc.
FormDesignerGUI builder, also known as MatisseJava[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)kind:bugBug report or fix
Activity