Details
-
Sub-task
-
Resolution: Fixed
-
P4
-
22
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8322051 | 22 | Leonid Mesnik | P4 | Closed | Won't Fix | |
JDK-8328868 | 21.0.4-oracle | Mimoun Ghordou | P4 | Resolved | Fixed | b01 |
JDK-8329856 | 21.0.4 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
Description
Tests
java/lang/instrument/PremainClass/InheritAgent0100.java
java/lang/instrument/PremainClass/InheritAgent1000.java
java/lang/instrument/PremainClass/InheritAgent1100.java
java/lang/instrument/PremainClass/NoPremainAgent.java
java/lang/instrument/PremainClass/NonPublicPremainAgent.java
java/lang/instrument/PremainClass/ZeroArgPremainAgent.java
ignores VM flags.
They (not sure if all) use PremainClassTest.java to start java and although it add java options, but ignores test.vm.opts.
Need to update
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
Utils.addTestJavaOpts(testArgs.split("\\s+")));
java/lang/instrument/PremainClass/InheritAgent0100.java
java/lang/instrument/PremainClass/InheritAgent1000.java
java/lang/instrument/PremainClass/InheritAgent1100.java
java/lang/instrument/PremainClass/NoPremainAgent.java
java/lang/instrument/PremainClass/NonPublicPremainAgent.java
java/lang/instrument/PremainClass/ZeroArgPremainAgent.java
ignores VM flags.
They (not sure if all) use PremainClassTest.java to start java and although it add java options, but ignores test.vm.opts.
Need to update
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
Utils.addTestJavaOpts(testArgs.split("\\s+")));
Attachments
Issue Links
- backported by
-
JDK-8328868 6 java/lang/instrument/PremainClass tests ignore VM flags
- Resolved
-
JDK-8329856 6 java/lang/instrument/PremainClass tests ignore VM flags
- Resolved
-
JDK-8322051 6 java/lang/instrument/PremainClass tests ignore VM flags
- Closed
- links to
-
Commit openjdk/jdk21u-dev/2a56bfbb
-
Commit openjdk/jdk/9029bf64
-
Review openjdk/jdk21u-dev/463
-
Review openjdk/jdk/17781
(2 links to)