-
Bug
-
Resolution: Fixed
-
P3
-
9
In the current implementation of sun/instrument/InstrumentationImpl.java, it allows the premain method be non-public which violates the spec. It should be fixed. It will break any existing java agent with a non-public static premain method that should be fixed. So this change should go into JDK 9 EA for external community testing.
388 // the premain method should not be required to be public,
389 // make it accessible so we can call it
390 // Note: The spec says the following:
391 // The agent class must implement a public static premain method...
388 // the premain method should not be required to be public,
389 // make it accessible so we can call it
390 // Note: The spec says the following:
391 // The agent class must implement a public static premain method...
- csr for
-
JDK-8248189 Spec states to invoke the premain method in an agent class if it's public but implementation differs
-
- Closed
-
- relates to
-
JDK-5070281 java.lang.instrument - agent's premain class need not be public
-
- Resolved
-
-
JDK-6932391 Allow java agents be deployed as modules
-
- Open
-
-
JDK-8260469 6 java/lang/instrument/PremainClass tests timed out
-
- Closed
-
-
JDK-8260707 java/lang/instrument/PremainClass/InheritAgent0100.java times out
-
- Resolved
-
(2 links to)