United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7149564 : (macosx) Applets fail to load when looking for mrj.version

Details
Type:
Bug
Submit Date:
2012-02-28
Status:
Closed
Updated Date:
2014-01-14
Project Name:
JDK
Resolved Date:
2012-03-01
Component:
deploy
OS:
os_x
Sub-Component:
webstart
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u37,7u4
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
Applets that attempt to access the property mrj.version will get an exception because we haven't added it to the permitted property list.

This is an old property defined by Apple's JDKs, and was used to identify Apple releases of the JDK that didn't coincide with an update to java.version. The typical usage pattern seems to be: "look for os.name and see if it contains 'Mac'. If it's there, get mrj.version".

We should just allow unsigned code to read the property. There's no harm in doing that, and if it's important to the applet they can find a better way to test for compatibility.

                                    

Comments
verified with 8 b123

                                     
2014-01-14
EVALUATION

Added a permission for reading mrj.version. The JRE won't set this property -- it's only there to allow applets to launch.
                                     
2012-02-29



Hardware and Software, Engineered to Work Together