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

[ja, zh_CN] jconsole throws exception and fail to start in ja and zh_CN locales

XMLWordPrintable

    • b135
    • x86
    • linux_redhat_5.0
    • Verified

      Tested using jdk7 promoted b130. jconsole will throw ExceptionInInitializerError when started in ja or zh_CN locale environment.

      bash-3.2$ locale
      LANG=ja_JP.UTF-8
      :
      LC_ALL=ja_JP.UTF-8
      bash-3.2$ jconsole
      Exception in thread "main" java.lang.ExceptionInInitializerError
              at sun.tools.jconsole.JConsole.<clinit>(JConsole.java:89)
      Caused by: java.lang.ClassCastException: sun.tools.jconsole.resources.JConsoleResources_ja cannot be cast to sun.tools.jconsole.resources.JConsoleResources
              at sun.tools.jconsole.Resources.<clinit>(Resources.java:43)
              ... 1 more

      Following change in b130 seems to be the cause.

      @@ -44,7 +44,7 @@
        * or if the keys ends with ".mnemonic", an element
        * representing a mnemomic keycode <code>int</code> or <code>char</code>.
        */
      -public class JConsoleResources_ja extends JConsoleResources {
      +public class JConsoleResources_ja extends ListResourceBundle {

           /**
            * Returns the contents of this <code>ResourceBundle</code>.

            mfang Michael Fang (Inactive)
            ogino Shinya Ogino (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: