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

JConsole throwed a ClassCastException under chinese locale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • tools
    • b81
    • 6
    • b83
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      mustang b81

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP Sp1+
      Simplified Chinese


      A DESCRIPTION OF THE PROBLEM :
      C:\Program Files\Java\jdk1.6.0\bin>jconsole
      Exception in thread "main" java.lang.ExceptionInInitializerError
              at sun.tools.jconsole.JConsole.<clinit>(JConsole.java:92)
      Caused by: java.lang.ClassCastException: sun.tools.jconsole.resources.JConsoleRe
      sources_zh_CN cannot be cast to sun.tools.jconsole.resources.JConsoleResources
              at sun.tools.jconsole.Resources.<clinit>(Resources.java:27)
              ... 1 more

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      C:\Program Files\Java\jdk1.6.0\bin>jconsole


      ACTUAL -
      java.lang.ClassCastException

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Folder :C:\JDK6.0SRC\j2se\src\share\classes\sun\tools\jconsole\resources
      JConsoleResources_zh_CN.java

      Change
      public class JConsoleResources_zh_CN extends ListResourceBundle{
        To
      public class JConsoleResources_zh_CN extends JConsoleResources {

      Change
      public class JConsoleResources_ja extends ListResourceBundle{
        To
      public class JConsoleResources_ja extends JConsoleResources {

      After all,thank u localized it for chinese.

            mfang Michael Fang (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: