JDK-6770420 : environment variables '_java_options' and 'java_tool_options' are disregarded
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-11-12
  • Updated: 2013-01-10
  • Resolved: 2009-01-21
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 6
6u12 b02Fixed
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_10-rc"

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
(this bug looks like OS independent)

EXTRA RELEVANT SYSTEM CONFIGURATION :
this bug happens for plugin2 only.

A DESCRIPTION OF THE PROBLEM :
as my collegue Gal asked in:
http://forums.java.net/jive/thread.jspa?threadID=47520&tstart=0

the problem is that we hook our JVMPI / JVMTI implementation by appending "-Xrunjvmhook -Xbootclasspath/a: ..." to _java_options (JVMPI) or by appending "-agentlib:jvmhook" to java_tool_options (JVMTI).

this is a backward compatibility issue, as the previous version did consider these environment variables.

as 'kbr' said in the link above, we are opening a bug for it.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
maybe one can try to connect any other JVMPI / JVMTI implementation.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
the environment variables should be considered.
ACTUAL -
the environment variables are not considered.

REPRODUCIBILITY :
This bug can be reproduced always.

Release Regression From : 6
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

Comments
EVALUATION Based on customer feedback, pass through _JAVA_OPTIONS and JAVA_TOOL_OPTIONS environment variables to JVMs spawned by the web browser to allow existing JVMPI / JVMTI tools to work with applets.
17-11-2008

SUGGESTED FIX http://sa.sfbay.sun.com/projects/deployment_data/6u12/6770420.0
17-11-2008