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

    Details

    • Subcomponent:
    • Resolved In Build:
      b135
    • CPU:
      x86
    • OS:
      linux_redhat_5.0
    • Verification:
      Verified

      Description

      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>.

        Activity

        Hide
        mfang Michael Fang (Inactive) added a comment -
        BT2:EVALUATION

        I will fix this in b134.
        Show
        mfang Michael Fang (Inactive) added a comment - BT2:EVALUATION I will fix this in b134.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Imported:
              Indexed: