-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
6u21
-
x86
-
linux_ubuntu
FULL PRODUCT VERSION :
java.vm.specification.vendor: Sun Microsystems Inc.
os.name: Linux
sun.jnu.encoding: UTF-8
java.library.path: /home/mthed/Downloads/jdk1.6.0_21/jre/lib/i386/server:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/i386:/home/mthed/Downloads/jdk1.6.0_21/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
java.specification.name: Java Platform API Specification
java.class.version: 50.0
sun.management.compiler: HotSpot Tiered Compilers
os.version: 2.6.32-24-generic-pae
user.home: /home/mthed
user.timezone: America/Los_Angeles
java.awt.printerjob: sun.print.PSPrinterJob
file.encoding: UTF-8
java.specification.version: 1.6
java.class.path: /usr/local/netbeans-6.9/ide/modules/ext/mysql-connector-java-5.1.6-bin.jar:/mnt/storage/Working/NETBEANS/TotalRecall/build/classes:/mnt/storage/Working/NETBEANS/TotalRecall/src
user.name: mthed
java.vm.specification.version: 1.0
java.home: /home/mthed/Downloads/jdk1.6.0_21/jre
sun.arch.data.model: 32
user.language: en
java.specification.vendor: Sun Microsystems Inc.
java.vm.info: mixed mode
java.version: 1.6.0_21
java.ext.dirs: /home/mthed/Downloads/jdk1.6.0_21/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path: /home/mthed/Downloads/jdk1.6.0_21/jre/lib/resources.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/rt.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/sunrsasign.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/jsse.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/jce.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/charsets.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/classes
java.vendor: Sun Microsystems Inc.
file.separator: /
java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding: UnicodeLittle
sun.cpu.endian: little
sun.desktop: gnome
sun.cpu.isalist:
ADDITIONAL OS VERSION INFORMATION :
Linux okra 2.6.32-24-generic-pae #43-Ubuntu SMP Thu Sep 16 15:30:27 UTC 2010 i686 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
creating a JSpinner control using SpinnerNumberModel initialized with 'long' values causes an exception when the spinner up and down arrows are used.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. create a JSpinner using 'long' number model:
JSpinner spinner = new JSpinner;
spinner.setEditor(
new JSpinner.NumberEditor(startYearSpinner, "0000"));
spinner.setModel(new SpinnerNumberModel(
0L, Long.MIN_VALUE, Long.MAX_VALUE, 1L));
2. load application and press up or down arrow on spinner twice
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
value in spinner is incremented/decremented
ACTUAL -
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double
at java.lang.Double.compareTo(Double.java:32)
at javax.swing.SpinnerNumberModel.incrValue(SpinnerNumberModel.java:332)
at javax.swing.SpinnerNumberModel.getNextValue(SpinnerNumberModel.java:355)
at javax.swing.JSpinner.getNextValue(JSpinner.java:351)
at javax.swing.plaf.basic.BasicSpinnerUI$ArrowButtonHandler.actionPerformed(BasicSpinnerUI.java:640)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
REPRODUCIBILITY :
This bug can be reproduced always.
java.vm.specification.vendor: Sun Microsystems Inc.
os.name: Linux
sun.jnu.encoding: UTF-8
java.library.path: /home/mthed/Downloads/jdk1.6.0_21/jre/lib/i386/server:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/i386:/home/mthed/Downloads/jdk1.6.0_21/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
java.specification.name: Java Platform API Specification
java.class.version: 50.0
sun.management.compiler: HotSpot Tiered Compilers
os.version: 2.6.32-24-generic-pae
user.home: /home/mthed
user.timezone: America/Los_Angeles
java.awt.printerjob: sun.print.PSPrinterJob
file.encoding: UTF-8
java.specification.version: 1.6
java.class.path: /usr/local/netbeans-6.9/ide/modules/ext/mysql-connector-java-5.1.6-bin.jar:/mnt/storage/Working/NETBEANS/TotalRecall/build/classes:/mnt/storage/Working/NETBEANS/TotalRecall/src
user.name: mthed
java.vm.specification.version: 1.0
java.home: /home/mthed/Downloads/jdk1.6.0_21/jre
sun.arch.data.model: 32
user.language: en
java.specification.vendor: Sun Microsystems Inc.
java.vm.info: mixed mode
java.version: 1.6.0_21
java.ext.dirs: /home/mthed/Downloads/jdk1.6.0_21/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path: /home/mthed/Downloads/jdk1.6.0_21/jre/lib/resources.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/rt.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/sunrsasign.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/jsse.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/jce.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/lib/charsets.jar:/home/mthed/Downloads/jdk1.6.0_21/jre/classes
java.vendor: Sun Microsystems Inc.
file.separator: /
java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding: UnicodeLittle
sun.cpu.endian: little
sun.desktop: gnome
sun.cpu.isalist:
ADDITIONAL OS VERSION INFORMATION :
Linux okra 2.6.32-24-generic-pae #43-Ubuntu SMP Thu Sep 16 15:30:27 UTC 2010 i686 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
creating a JSpinner control using SpinnerNumberModel initialized with 'long' values causes an exception when the spinner up and down arrows are used.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. create a JSpinner using 'long' number model:
JSpinner spinner = new JSpinner;
spinner.setEditor(
new JSpinner.NumberEditor(startYearSpinner, "0000"));
spinner.setModel(new SpinnerNumberModel(
0L, Long.MIN_VALUE, Long.MAX_VALUE, 1L));
2. load application and press up or down arrow on spinner twice
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
value in spinner is incremented/decremented
ACTUAL -
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double
at java.lang.Double.compareTo(Double.java:32)
at javax.swing.SpinnerNumberModel.incrValue(SpinnerNumberModel.java:332)
at javax.swing.SpinnerNumberModel.getNextValue(SpinnerNumberModel.java:355)
at javax.swing.JSpinner.getNextValue(JSpinner.java:351)
at javax.swing.plaf.basic.BasicSpinnerUI$ArrowButtonHandler.actionPerformed(BasicSpinnerUI.java:640)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
REPRODUCIBILITY :
This bug can be reproduced always.