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

ClassCastException when switching to GTL+ LAF on RedHat 9.0

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b35
    • CPU:
      x86
    • OS:
      windows_xp

      Description


      ###@###.### 2003-12-15

      J2SE Version (please include all output from java -version flag):
        java version "1.5.0-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b30)
        Java HotSpot(TM) Client VM (build 1.5.0-beta-b30, mixed mode)

      Does this problem occur on J2SE 1.4 or 1.4.1 or 1.4.2? Yes / No (pick one)
        No

      Operating System Configuration Information (be specific):
        Red Hat Linux 9

      Hardware Configuration Information (be specific):
        Pentium4, 1.5GHz, 1GB RAM

      Bug Description:
        ClassCastException when switching to GTL+ LAF on RedHat 9.0
        This bug is similar to Bug Id: 4918223.

      Steps to Reproduce (be specific):
        - Run the msgtool.jar file as following:

            java -Duser.home=. -jar msgtool.jar

      (Note that files whose name starts with "MessagingTool." will be created.)

        - Change LAF from "Edit ..." -> "Properties .." -> Preferences to GTK+

         The following is the stack trace:

      java.lang.ClassCastException: java.lang.Long
              at javax.swing.AbstractButton.setUIProperty(AbstractButton.java:2054)
              at javax.swing.LookAndFeel.installProperty(LookAndFeel.java:144)
              at javax.swing.plaf.synth.SynthButtonUI.updateStyle(SynthButtonUI.java:68)
              at javax.swing.plaf.synth.SynthRadioButtonUI.updateStyle(SynthRadioButtonUI.java:38)
              at javax.swing.plaf.synth.SynthButtonUI.installDefaults(SynthButtonUI.java:39)
              at javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:67)
              at javax.swing.JComponent.setUI(JComponent.java:624)
              at javax.swing.AbstractButton.setUI(AbstractButton.java:1628)
              at javax.swing.JCheckBox.updateUI(JCheckBox.java:195)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1168)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1179)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1179)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1179)
              at javax.swing.SwingUtilities.updateComponentTreeUI0(SwingUtilities.java:1179)
              at javax.swing.SwingUtilities.updateComponentTreeUI(SwingUtilities.java:1160)
              at msgtool.swing.LFManager.updateAllComponents(Unknown Source)
              at msgtool.swing.LFManager.propertyChange(Unknown Source)
              at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:305)
              at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:242)
              at msgtool.db.PropertiesDB.save(Unknown Source)
              at msgtool.db.PropertiesDB.saveProperties(Unknown Source)
              at msgtool.swing.PropertiesUI.actionPerformed(Unknown Source)
              at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1834)
              at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2152)
              at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
              at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
              at
      javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
              at java.awt.Component.processMouseEvent(Component.java:5463)
              at javax.swing.JComponent.processMouseEvent(JComponent.java:3052)
              at java.awt.Component.processEvent(Component.java:5228)
              at java.awt.Container.processEvent(Container.java:1961)
              at java.awt.Component.dispatchEventImpl(Component.java:3931)
              at java.awt.Container.dispatchEventImpl(Container.java:2019)
              at java.awt.Component.dispatchEvent(Component.java:3779)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4203)
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3883)
              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3813)
              at java.awt.Container.dispatchEventImpl(Container.java:2005)
              at java.awt.Window.dispatchEventImpl(Window.java:1739)
              at java.awt.Component.dispatchEvent(Component.java:3779)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:231)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

        Attachments

          Activity

            People

            Assignee:
            moasunw Moa Moa (Inactive)
            Reporter:
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: