8304696: Duplicate class names in dynamicArchive tests can lead to test failure
Reviewed-by: iklam
This commit is contained in:
parent
cb158ffb8a
commit
b2240bf870
test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2023, 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
|
||||
@ -31,7 +31,7 @@
|
||||
* /test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/test-classes
|
||||
* @build LinkClassApp
|
||||
* @build jdk.test.whitebox.WhiteBox
|
||||
* @run driver jdk.test.lib.helpers.ClassFileInstaller -jar link_class_app.jar LinkClassApp Parent Child Parent2 Child2 MyShutdown
|
||||
* @run driver jdk.test.lib.helpers.ClassFileInstaller -jar link_class_app.jar LinkClassApp Parent Child Parent2 Child2 LinkClassApp$MyShutdown
|
||||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
|
||||
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. LinkClassTest
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2023, 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
|
||||
@ -46,13 +46,13 @@ class Child2 extends Parent2 {
|
||||
int get() {return 4;}
|
||||
}
|
||||
|
||||
class MyShutdown extends Thread{
|
||||
public void run(){
|
||||
System.out.println("shut down hook invoked...");
|
||||
}
|
||||
}
|
||||
|
||||
class LinkClassApp {
|
||||
static class MyShutdown extends Thread{
|
||||
public void run(){
|
||||
System.out.println("shut down hook invoked...");
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String args[]) {
|
||||
Runtime r=Runtime.getRuntime();
|
||||
r.addShutdownHook(new MyShutdown());
|
||||
|
Loading…
x
Reference in New Issue
Block a user