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.

Bug 229219 - Property editor for char.class is missing
Summary: Property editor for char.class is missing
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-30 14:16 UTC by Jan Stola
Modified: 2013-04-30 14:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2013-04-30 14:16:02 UTC
Steps to reproduce:

1. Create a bean with a property of type char.
2. Add an instance of the bean into a form. 
3. Select the instance of the bean in Navigator.
4. Find the property of type char in Properties view.
   => it is not possible to edit the value of the property.
   (It is possible to specify the value from an existing component or to specify
    a custom code but it is not possible to edit the value directly).
Comment 1 Jan Stola 2013-04-30 14:24:44 UTC
Note that the property editor for char properties was present in NetBeans 7.2 but disappeared in NetBeans 7.3.
Comment 2 Jan Stola 2013-04-30 14:38:34 UTC
The root of the problem seems to be in

http://hg.netbeans.org/web-main/rev/b1efa878877e

It removes an explicit assignment of CharEditor to char

- PropertyEditorManager.registerEditor (java.lang.Character.TYPE, org.netbeans.beaninfo.editors.CharEditor.class);

and doesn't add the corresponding annotation to CharEditor.
Comment 3 Jan Stola 2013-04-30 14:39:28 UTC
I have added char.class into PropertyEditorRegistration annotation on CharEditor.

Modified file: http://hg.netbeans.org/web-main/rev/4b04aad85a73