JDK-7149564 : (macosx) Applets fail to load when looking for mrj.version
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6u37,7u4
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-02-28
  • Updated: 2014-01-14
  • Resolved: 2012-03-01
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.
7u6Fixed 8 b28Fixed
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.

verified with 8 b123

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