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

Please, add property sun.locale.formatasdefault to the list of secure properties

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 7u6
    • 7
    • deploy
    • x86
    • windows_vista

      A DESCRIPTION OF THE REQUEST :
      In Java 7 was added a separation of User Locale and User Interface Locale.
      The new Locale.getDefault(Locale.Category) method takes a Locale.Category parameter, that is incompatible with previous versions. The previous behavior can be restored by setting the sun.locale.formatasdefault system property to true.
      However, this property are not considered "secure" to be passed to the VM in JNLP file.

      JUSTIFICATION :
      The previous behavior can not be restored without this property.


      ---------- BEGIN SOURCE ----------
      Add property <property name="sun.locale.formatasdefault" value="true" /> into the JNLP file and run an app with previous Locale and Java 7.

      A java source code (and test configuration) can be obtained in http://blog.ej-technologies.com/2011/12/default-locale-changes-in-java-7.html.
      ---------- END SOURCE ----------

            mhowe Mark Howe (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: