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

JConsole throwed a ClassCastException under chinese locale

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: tools
    • Subcomponent:
    • Introduced In Build:
      b81
    • Introduced In Version:
      6
    • Resolved In Build:
      b83
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: