JDK-8209814 : Convert java.lang.instrument shell tests to java
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: java.lang.instrument
  • Affected Version: 9,10
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2018-08-21
  • Updated: 2022-01-07
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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
This enhancement is separated from the original enhancement JDK-8179318.

Total number of tests: 63
All tests reside under test/java/lang/instrument and have "@run shell ..." in them. Here is the updated full list.
Note: the ".java" tests below run the shell via "@run shell", therefore they are included in this list.

AddTransformerTest.java
AppendToBootstrapClassPathTest.java
AppendToClassPathTest.java
BootClassPath/BootClassPathTest.sh
BootstrapClassPathTest.java
CustomSystemLoader/Agent.java
DaemonThread/TestDaemonThread.java
FromShutdownHook.java
GetAllLoadedClassesTest.java
GetInitiatedClassesTest.java
GetObjectSizeTest.java
IsModifiableClassAgent.java
ManifestTest.sh
ManyMethodsBenchmarkAgent.java
NativeMethodPrefixAgent.java
NoTransformerAddedTest.java
NullGetObjectSizeTest.java
NullRedefineClassesTests.java
NullTransformerAddTest.java
NullTransformerRemoveTest.java
ParallelTransformerLoader.sh
PremainClass/InheritAgent0010.java
PremainClass/InheritAgent1011.java
PremainClass/NoPremainAgentTest.java
PremainClass/InheritAgent1010.java
PremainClass/InheritAgent0011.java
PremainClass/ZeroArgPremainAgentTest.java
PremainClass/InheritAgent1001.java
PremainClass/InheritAgent1000.java
PremainClass/InheritAgent0001.java
PremainClass/InheritAgent1111.java
PremainClass/InheritAgent0110.java
PremainClass/InheritAgent0111.java
PremainClass/InheritAgent1110.java
PremainClass/InheritAgent1101.java
PremainClass/InheritAgent0100.java
PremainClass/InheritAgent0101.java
PremainClass/InheritAgent1100.java
RedefineBigClass.sh
RedefineClassWithNativeMethod.sh
RedefineClassesDisabledTest.java
RedefineClassesTests.java
RedefineMethodAddInvoke.sh
RedefineMethodDelInvoke.sh
RedefineMethodInBacktrace.sh
RedefineMethodWithAnnotations.sh
RedefineModuleTest.java
RedefineSubclassWithTwoInterfaces.sh
RemoveAbsentTransformerTest.java
RemoveTransformerTest.java
RetransformAgent.java
RetransformBigClass.sh
SingleTransformerTest.java
StressGetObjectSizeTest.sh
TestAgentWithLimitMods.java
TransformMethodTest.java
TransformerManagementThreadAddTests.java
TransformerManagementThreadRemoveTests.java
VerifyLocalVariableTableOnRetransformTest.sh
appendToClassLoaderSearch/CircularityErrorTest.sh
appendToClassLoaderSearch/ClassUnloadTest.sh
appendToClassLoaderSearch/run_tests.sh
modules/AppendToClassPathModuleTest.java

Comments
I believe that many of these tests can be converted to use RedefineClassHelper like the tests in test/hotspot/serviceability/jvmti/RedefineClasses.
07-01-2022