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

the save or open dialog access the network neighbour will wrong in win98

    Details

      Description

      windows98 simplified chinese
      merlin b76

      #tar -xvf sing_awt_test.tar
      #cd swingtest/classes
      #java SwingTest -command test

      then click the menu 'open' or 'save', in the file dialog, try to access windows's network neighbour, there will have some wrong as fellow:

      CLASSPATH : .
      JAVA HOME : C:\PROGRAM FILES\JAVASOFT\JRE\1.4
      Starting SwingTest. Please wait...
      Loading test module :class JButtonTest
      Loading test module :class JTextFieldTest
      Loading test module :class JComboBoxTest
      Loading test module :class JLabelTest
      Loading test module :class JTextAreaTest
      Loading test module :class JCheckBoxTest
      Loading test module :class JRadioButtonTest
      Loading test module :class JPopupMenuTest
      Loading test module :class JListTest
      Loading test module :class JTextPaneTest
      Loading test module :class JTabbedPaneTest
      Loading test module :class EuroTest
      Loading test module :class JTableTest
      Loading test module :class CutPasteTest
      Loading test module :class JAppletTest
      java.lang.Error: Converter malfunction: sun.io.ByteToCharGBK
      at java.lang.StringCoding$ConverterSD.decode(Unknown Source)
      at java.lang.StringCoding.decode(Unknown Source)
      at java.lang.StringCoding.decode(Unknown Source)
      at java.lang.String.<init>(Unknown Source)
      at java.lang.String.<init>(Unknown Source)
      at sun.awt.shell.Win32ShellFolder.getDisplayName(Native Method)
      at sun.awt.shell.Win32ShellFolder.getDisplayName(Unknown Source)
      at sun.awt.shell.ShellFolder.toString(Unknown Source)
      at javax.swing.DefaultListCellRenderer.getListCellRendererComponent(Unknown Source)
      at javax.swing.plaf.metal.MetalFileChooserUI$FileRenderer.getListCellRendererComponent(Unknown Source)
      at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
      at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
      at javax.swing.plaf.basic.BasicListUI.getPreferredSize(Unknown Source)
      at javax.swing.JComponent.getPreferredSize(Unknown Source)
      at javax.swing.ScrollPaneLayout.layoutContainer(Unknown Source)
      at java.awt.Container.layout(Unknown Source)
      at java.awt.Container.doLayout(Unknown Source)
      at java.awt.Container.validateTree(Unknown Source)
      at java.awt.Container.validate(Unknown Source)
      at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.Dialog.show(Unknown Source)
      at javax.swing.JFileChooser.showDialog(Unknown Source)
      at javax.swing.JFileChooser.showOpenDialog(Unknown Source)
      at SwingTestDesktop$OpenListener.actionPerformed(SwingTestDesktop.java:213)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.AbstractButton.doClick(Unknown Source)
      at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
      at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
      Caused by: sun.io.MalformedInputException
      at sun.io.ByteToCharDoubleByte.flush(Unknown Source)
      ... 55 more
      java.lang.Error: Converter malfunction: sun.io.ByteToCharGBK
      at java.lang.StringCoding$ConverterSD.decode(Unknown Source)
      at java.lang.StringCoding.decode(Unknown Source)
      at java.lang.StringCoding.decode(Unknown Source)
      at java.lang.String.<init>(Unknown Source)
      at java.lang.String.<init>(Unknown Source)
      at sun.awt.shell.Win32ShellFolder.getDisplayName(Native Method)
      at sun.awt.shell.Win32ShellFolder.getDisplayName(Unknown Source)
      at sun.awt.shell.ShellFolder.toString(Unknown Source)
      at javax.swing.DefaultListCellRenderer.getListCellRendererComponent(Unknown Source)
      at javax.swing.plaf.metal.MetalFileChooserUI$FileRenderer.getListCellRendererComponent(Unknown Source)
      at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
      at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
      at javax.swing.plaf.basic.BasicListUI.paint(Unknown Source)
      at javax.swing.plaf.ComponentUI.update(Unknown Source)
      at javax.swing.JComponent.paintComponent(Unknown Source)
      at javax.swing.JComponent.paint(Unknown Source)
      at javax.swing.JComponent.paintChildren(Unknown Source)
      at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
      at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
      at javax.swing.JComponent._paintImmediately(Unknown Source)
      at javax.swing.JComponent.paintImmediately(Unknown Source)
      at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
      Caused by: sun.io.MalformedInputException
      at sun.io.ByteToCharDoubleByte.flush(Unknown Source)
      ... 30 more

      but from window explorer can access the computer and it's shared directory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                leifs Leif Samuelsson (Inactive)
                Reporter:
                lefan Leon Fan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: