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 8781 - 'short' datatype does not exist as a combo box choice
Summary: 'short' datatype does not exist as a combo box choice
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 95/98
: P4 normal (vote)
Assignee: issues@www
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-12-06 00:35 UTC by Anil Philip
Modified: 2009-11-07 11:17 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 Anil Philip 2000-12-06 00:35:09 UTC
I thought 'short' was a valid datatype :-)
but when for example, you do File|New|Template|Interface and try to pick a datatype
from the combo box, 'short' is not a choice!
Comment 1 Jan Chalupa 2000-12-06 08:33:59 UTC
*** Bug 8782 has been marked as a duplicate of this bug. ***
Comment 2 Tomas Hurka 2001-01-12 13:13:59 UTC
I suggest to correct this bug with the pathes bellow. I corrected usage of
deprecated API NotifoyDescriptor.Exception.  I also searched for list of
datatypes in other places and found another two lists, where 'short' and 'byte'
was missing.

Index: openide/src/org/openide/src/nodes/FieldCustomizer.java
===================================================================
RCS file: /cvs/openide/src/org/openide/src/nodes/FieldCustomizer.java,v
retrieving revision 1.8
diff -r1.8 FieldCustomizer.java
48a49,50
>       "byte", // NOI18N
>       "short", // NOI18N
228,230c230
<                     TopManager.getDefault().notify(
<                         new NotifyDescriptor.Exception(e)
<                     );
---
>                     TopManager.getDefault().notifyException(e);
263,265c263
<                 TopManager.getDefault().notify(
<                     new NotifyDescriptor.Exception(e)
<                 );
---
>                 TopManager.getDefault().notifyException(e);
291,293c289
<                     TopManager.getDefault().notify(
<                         new NotifyDescriptor.Exception(e)
<                     );
---
>                     TopManager.getDefault().notifyException(e);
Index: openide/src/org/openide/src/nodes/MethodCustomizer.java
===================================================================
RCS file: /cvs/openide/src/org/openide/src/nodes/MethodCustomizer.java,v
retrieving revision 1.8
diff -r1.8 MethodCustomizer.java
48c48,50
<         "int", // NOI18N
---
>       "byte", // NOI18N
>       "short", // NOI18N
>       "int", // NOI18N
Index:
openide/src/org/openide/explorer/propertysheet/editors/MethodParameterPanel.java
===================================================================
RCS file:
/cvs/openide/src/org/openide/explorer/propertysheet/editors/MethodParameterPanel.java,v
retrieving revision 1.7
diff -r1.7 MethodParameterPanel.java
34d33
<         "int", // NOI18N
35a35
>         "byte", // NOI18N
37c37,39
<         "long", // NOI18N
---
>       "short", // NOI18N
>         "int", // NOI18N
>       "long", // NOI18N
Comment 3 Jan Becicka 2001-01-31 14:45:59 UTC
[010130_1] Verified
Comment 4 Quality Engineering 2003-07-01 13:17:56 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2007-09-20 11:54:55 UTC
Reorganization of java component