JDK-7171199 : Please, add property sun.locale.formatasdefault to the list of secure properties
  • Type: Enhancement
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2012-05-23
  • Updated: 2012-06-28
  • Resolved: 2012-06-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u6Resolved
Related Reports
Duplicate :  
Description
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 ----------

Comments
EVALUATION See CR 7160619 for more information about other compaitbiliy properties
26-06-2012