8357282: Test vmTestbase/nsk/jvmti/AttachOnDemand/attach045/TestDescription.java fails after ClassNotFoundException

Reviewed-by: lmesnik, sspitsyn
This commit is contained in:
Alex Menkov 2025-05-27 23:23:26 +00:00
parent f25f4a3eb2
commit c110623d38
2 changed files with 7 additions and 3 deletions

View File

@ -162,7 +162,6 @@ vmTestbase/metaspace/gc/firstGC_50m/TestDescription.java 8208250 generic-all
vmTestbase/metaspace/gc/firstGC_99m/TestDescription.java 8208250 generic-all
vmTestbase/metaspace/gc/firstGC_default/TestDescription.java 8208250 generic-all
vmTestbase/nsk/jvmti/AttachOnDemand/attach045/TestDescription.java 8202971 generic-all
vmTestbase/nsk/jvmti/scenarios/capability/CM03/cm03t001/TestDescription.java 8073470 linux-all
vmTestbase/nsk/jvmti/InterruptThread/intrpthrd003/TestDescription.java 8288911 macosx-all

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -106,7 +106,12 @@ public class AODRunnerArgParser extends ArgumentParser {
throw new TestBug("Target application isn't specified");
}
return options.getProperty(TARGET_APP_PARAM);
String target = options.getProperty(TARGET_APP_PARAM);
// target may contain class and arguments in surrounding quotes
if (target.startsWith("\"") && target.endsWith("\"")) {
target = target.substring(1, target.length() - 1);
}
return target;
}
public String getTestedJDK() {