Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6461047

JCK-runtime-14a JSpinner 2003 Test case throws exception: java.lang.ClassCastException for 142_13b2

XMLWordPrintable

    • b02
    • b03
    • generic
    • generic
    • Verified

      java version "1.4.2_13"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b02)
      Java HotSpot(TM) Client VM (build 1.4.2_13-b02, mixed mode)

      Environment: JCK-runtime-14a
      TEST="javasoft.sqe.tests.api.javax.swing.JSpinner.setgetTests -TestCaseID ALL"

      Tested Platforms : Windows XP Home SP2, Solaris Sparc 10 Update 2 FCS.

      The above testcase is failing with build 1.4.2_13-b02, but was passing for 1.4.2_13-ea-b01. It is a clear regression introduced in build2.

      Use attached JSpinner_setget.sh to run the testcase.
      You need only to change location of JCK and JDK in your environment.

      See attached .jtr for full details.

      Output from JSpinner_setget.sh.

      bash-3.00# ./JSpinnner_setget

      java version "1.4.2_13"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b02)
      Java HotSpot(TM) Client VM (build 1.4.2_13-b02, mixed mode)

      java.lang.ClassCastException
              at javax.swing.plaf.basic.BasicSpinnerUI$PropertyChangeHandler.propertyChange(BasicSpinnerUI.java:856)
              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:264)
              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:232)
              at javax.swing.JComponent.firePropertyChange(JComponent.java:3819)
              at javax.swing.JSpinner.setEditor(JSpinner.java:456)
              at javasoft.sqe.tests.api.javax.swing.JSpinner.setgetTests.JSpinner2003(setgetTests.java:44)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
              at javasoft.sqe.tests.api.javax.swing.JSpinner.setgetTests.main(setgetTests.java:27)
      JSpinner2003: Failed. Test case throws exception: java.lang.ClassCastException
      JSpinner2004: Passed. OKAY
      JSpinner2005: Passed. OKAY
      JSpinner2006: Passed. OKAY
      JSpinner2007: Passed. OKAY
      JSpinner2008: Passed. OKAY
      JSpinner2009: Passed. OKAY
      JSpinner2010: Passed. OKAY
      JSpinner2011: Passed. OKAY
      JSpinner2012: Passed. OKAY
      Correctly thrown IllegalArgumentException
      Correctly thrown IllegalArgumentException
      Correctly thrown IllegalArgumentException
      Correctly thrown IllegalArgumentException
      Correctly thrown IllegalArgumentException
      Correctly thrown IllegalArgumentException
      Correctly thrown IllegalArgumentException
      Correctly thrown IllegalArgumentException
      Correctly thrown IllegalArgumentException from JSpinner.setValue()
      Correctly thrown IllegalArgumentException from JSpinner.getModel().setValue()
      Correctly thrown IllegalArgumentException from JSpinner.setValue()
      Correctly thrown IllegalArgumentException from JSpinner.getModel().setValue()
      Correctly thrown IllegalArgumentException from JSpinner.setValue()
      Correctly thrown IllegalArgumentException from JSpinner.getModel().setValue()
      Correctly thrown IllegalArgumentException from JSpinner.setValue()
      Correctly thrown IllegalArgumentException from JSpinner.getModel().setValue()
      Correctly thrown IllegalArgumentException
      STATUS:Failed.test cases: 10; passed: 9; failed: 1; first test case failure: JSpinner2003

      Also, if you need access to a local machine in my domain I can make one available with environment setup also. Just let me know.

            kbalasubsunw Kannan Balasubramanian (Inactive)
            amckeownsunw Annemarie Mckeown (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: