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 155979 - ClassCastException: java.lang.Integer cannot be cast to java.lang.Short
Summary: ClassCastException: java.lang.Integer cannot be cast to java.lang.Short
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@obsolete
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-23 10:04 UTC by ownnn
Modified: 2011-11-28 09:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 42457


Attachments
stacktrace (4.55 KB, text/plain)
2008-12-23 10:04 UTC, ownnn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ownnn 2008-12-23 10:04:13 UTC
Build: NetBeans IDE Dev (Build 200812181401)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows Vista, 6.0, x86

Stacktrace: 
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Short
        at java.lang.Short.compareTo(Short.java:28)
        at org.netbeans.modules.visualweb.propertyeditors.NumberPropertyEditor.getAsText(NumberPropertyEditor.java:187)
        at org.openide.explorer.propertysheet.RendererFactory$StringRenderer.reset(RendererFactory.java:967)
        at org.openide.explorer.propertysheet.RendererFactory$StringRenderer.connect(RendererFactory.java:931)
        at org.openide.explorer.propertysheet.RendererFactory.prepareString(RendererFactory.java:372)
        at org.openide.explorer.propertysheet.RendererFactory.getRenderer(RendererFactory.java:235)
Comment 1 ownnn 2008-12-23 10:04:27 UTC
Created attachment 75264 [details]
stacktrace
Comment 2 Peter Zavadsky 2009-01-05 18:44:15 UTC
Yes, there seems to be an incorrect implementation. Integer property editor is used also for Short type, and also Double
property editor is used for Float type as well, which use then different types for boundaries check, leading to this
issue (see PropertyEditorResolverImpl in visualweb.propertyeditors).
Comment 3 Jan Chalupa 2011-11-28 09:03:43 UTC
Obsolete issue. Closing.