JDK-6173807 : Unify launching mechanisms for java.lang.management and java.lang.instrument agents
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2004-10-04
  • Updated: 2011-02-16
  • Resolved: 2005-05-23
Related Reports
Duplicate :  
Description
java.lang.management uses a -D flag.
java.lang.instrument uses the -javaagent flag.
###@###.### 10/4/04 17:32 GMT

Comments
EVALUATION Consistency and interoperability are important. A unified mechanism should be provided. ###@###.### 10/4/04 17:32 GMT As part of the attach-on-demand work (6173612) we are looking to support java agents with a Premain-Class that has a premain(String) signature. This should provide a mechanism to load the management agent via -javaagent or have it loaded dynamically. ###@###.### 11/3/04 11:28 GMT As part of 6173612 the -javaagent option has been updated to look for premain signature of premain(String) if premain(String, Instrumentation) is not found. I am therefore closing this RFE. ###@###.### 2005-05-23 08:16:21 GMT
04-10-2004