Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8263412: ClassFileInstaller can't be used by classes outside of defau…
…lt package

Reviewed-by: iklam, coleenp, mseledtsov
  • Loading branch information
iignatev committed Mar 12, 2021
1 parent bf9b5fa commit e834f99d1dee8070e626fd1a4657e0522a414ae7
Showing with 526 additions and 320 deletions.
  1. +2 −1 test/hotspot/jtreg/runtime/BadObjectClass/BootstrapRedefine.java
  2. +2 −1 test/hotspot/jtreg/runtime/ClassFile/PreviewVersion.java
  3. +2 −1 test/hotspot/jtreg/runtime/cds/BootAppendTests.java
  4. +2 −1 test/hotspot/jtreg/runtime/cds/SharedStrings.java
  5. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/ArchiveRelocationTest.java
  6. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/BootClassPathMismatch.java
  7. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/CDSandJFR.java
  8. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/DumpClassList.java
  9. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/FieldLayoutFlags.java
  10. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/JarBuilder.java
  11. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/PackageSealing.java
  12. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/WrongClasspath.java
  13. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedIntegerCacheTest.java
  14. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedModuleComboTest.java
  15. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedModuleCompareTest.java
  16. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/cacheObject/ArchivedModuleWithCustomImageTest.java
  17. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/cacheObject/CheckCachedMirrorTest.java
  18. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/cacheObject/CheckCachedResolvedReferences.java
  19. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/cacheObject/GCStressTest.java
  20. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/cacheObject/MirrorWithReferenceFieldsTest.java
  21. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/cacheObject/PrimitiveTypesTest.java
  22. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/cacheObject/RedefineClassTest.java
  23. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/condy/CondyHelloTest.java
  24. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/customLoader/HelloCustom.java
  25. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/ArchiveConsistency.java
  26. +2 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/ArchivedSuperIf.java
  27. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/ArrayKlasses.java
  28. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/BasicLambdaTest.java
  29. +2 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/ClassResolutionFailure.java
  30. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/DynamicArchiveRelocationTest.java
  31. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/DynamicArchiveTestBase.java
  32. +2 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/DynamicLotsOfClasses.java
  33. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/ExcludedClasses.java
  34. +2 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/HelloDynamic.java
  35. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/HelloDynamicCustom.java
  36. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/HelloDynamicCustomUnload.java
  37. +2 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/JITInteraction.java
  38. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LambdaCustomLoader.java
  39. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LambdaForClassInBaseArchive.java
  40. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LambdaInBaseArchive.java
  41. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LambdaProxyCallerIsHidden.java
  42. +2 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LambdaProxyDuringShutdown.java
  43. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LinkClassTest.java
  44. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/MethodSorting.java
  45. +2 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/MismatchedBaseArchive.java
  46. +2 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/MissingArchive.java
  47. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/NestTest.java
  48. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/NoClassToArchive.java
  49. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/ParallelLambdaLoadTest.java
  50. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/PredicateTest.java
  51. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/RegularHiddenClass.java
  52. +2 −0 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/SharedArchiveFileOption.java
  53. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/SharedBaseAddressOption.java
  54. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/StaticInnerTest.java
  55. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/UnsafeAndLambda.java
  56. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/UnsafeAnonymous.java
  57. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/UsedAllArchivedLambdas.java
  58. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/WrongTopClasspath.java
  59. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/javaldr/AnonVmClassesDuringDump.java
  60. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/javaldr/ExceptionDuringDumpAtObjectsInitPhase.java
  61. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/javaldr/GCDuringDump.java
  62. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/javaldr/GCSharedStringsDuringDump.java
  63. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/javaldr/HumongousDuringDump.java
  64. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/javaldr/LockDuringDump.java
  65. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/CheckUnsupportedDumpingOptions.java
  66. +3 −1 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/JigsawOptionsCombo.java
  67. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/PatchModule/AppClassInCP.java
  68. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/PatchModule/CustomPackage.java
  69. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/PatchModule/MismatchedPatchModule.java
  70. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/PatchModule/PatchDir.java
  71. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/PatchModule/PatchJavaBase.java
  72. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/PatchModule/Simple.java
  73. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/PatchModule/SubClassOfPatchedClass.java
  74. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/PatchModule/TwoJars.java
  75. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/jigsaw/RedefineClassesInModuleGraph.java
  76. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/jvmti/ClassFileLoadHookTest.java
  77. +1 −0 test/hotspot/jtreg/runtime/cds/appcds/jvmti/InstrumentationTest.java
  78. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/jvmti/dumpingWithAgent/DumpingWithJavaAgent.java
  79. +4 −1 test/hotspot/jtreg/runtime/cds/appcds/jvmti/parallelLoad/ParallelLoadAndTransformTest.java
  80. +2 −1 ...hotspot/jtreg/runtime/cds/appcds/jvmti/transformRelatedClasses/TransformRelatedClassesAppCDS.java
  81. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java
  82. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/LoaderConstraintsTest.java
  83. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/redefineClass/RedefineBasicTest.java
  84. +2 −1 test/hotspot/jtreg/runtime/cds/appcds/redefineClass/RedefineRunningMethods_Shared.java
  85. +2 −1 test/hotspot/jtreg/runtime/cds/serviceability/ReplaceCriticalClasses.java
  86. +2 −1 test/hotspot/jtreg/runtime/cds/serviceability/transformRelatedClasses/TransformRelatedClasses.java
  87. +2 −1 test/hotspot/jtreg/runtime/getSysPackage/GetPackageXbootclasspath.java
  88. +2 −1 test/hotspot/jtreg/runtime/getSysPackage/GetSysPkgTest.java
  89. +2 −1 test/hotspot/jtreg/runtime/modules/ModuleStress/ModuleStress.java
  90. +2 −1 test/hotspot/jtreg/runtime/modules/PatchModule/PatchModule2Dirs.java
  91. +2 −1 test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleCDS.java
  92. +2 −1 test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleClassList.java
  93. +2 −1 test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleJavaBase.java
  94. +2 −1 test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleTest.java
  95. +2 −1 test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleTestJar.java
  96. +2 −1 test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleTestJarDir.java
  97. +2 −1 test/hotspot/jtreg/runtime/modules/PatchModule/PatchModuleTraceCL.java
  98. +2 −1 test/hotspot/jtreg/runtime/modules/Visibility/PatchModuleVisibility.java
  99. +2 −1 test/hotspot/jtreg/runtime/modules/Visibility/XbootcpNoVisibility.java
  100. +2 −1 test/hotspot/jtreg/runtime/modules/Visibility/XbootcpVisibility.java
  101. +1 −0 test/hotspot/jtreg/runtime/records/RedefineRecord.java
  102. +1 −0 test/hotspot/jtreg/runtime/sealedClasses/RedefinePermittedSubclass.java
  103. +1 −0 test/hotspot/jtreg/runtime/sealedClasses/RedefineSealedClass.java
  104. +2 −1 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/ModifyAnonymous.java
  105. +2 −1 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineAnnotations.java
  106. +2 −1 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineLeak.java
  107. +2 −1 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RedefineObject.java
  108. +2 −2 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/RetransformClassesZeroLength.java
  109. +2 −2 test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/TransformerDeadlockTest.java
  110. +2 −1 test/jdk/java/security/AccessController/DoPrivAccompliceTest.java
  111. +2 −1 test/jdk/jdk/internal/loader/URLClassPath/JarClassPathFileEntry.java
  112. +6 −231 test/lib/ClassFileInstaller.java
  113. +2 −1 test/lib/RedefineClassHelper.java
  114. +292 −0 test/lib/jdk/test/lib/helpers/ClassFileInstaller.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2021, 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
@@ -34,6 +34,7 @@
import jdk.test.lib.compiler.InMemoryJavaCompiler;
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;

public class BootstrapRedefine {

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@@ -36,6 +36,7 @@
import jdk.test.lib.ByteCodeLoader;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.helpers.ClassFileInstaller;

public class PreviewVersion {

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2021, 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,6 +46,7 @@
import jdk.test.lib.cds.CDSTestUtils;
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;

public class BootAppendTests {
private static final String APP_CLASS = "LoadClass";
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2021, 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
@@ -35,6 +35,7 @@
import jdk.test.lib.cds.CDSTestUtils;
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;

public class SharedStrings {
public static void main(String[] args) throws Exception {
@@ -35,6 +35,7 @@
*/

import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;
import jtreg.SkippedException;

public class ArchiveRelocationTest {
@@ -35,6 +35,7 @@
import jdk.test.lib.Platform;
import jdk.test.lib.cds.CDSOptions;
import jdk.test.lib.cds.CDSTestUtils;
import jdk.test.lib.helpers.ClassFileInstaller;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.FileAlreadyExistsException;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@@ -34,6 +34,7 @@

import jdk.test.lib.BuildHelper;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;

public class CDSandJFR {
static String[] classes = {
@@ -35,6 +35,7 @@
import jdk.test.lib.cds.CDSOptions;
import jdk.test.lib.cds.CDSTestUtils;
import jdk.test.lib.compiler.InMemoryJavaCompiler;
import jdk.test.lib.helpers.ClassFileInstaller;

public class DumpClassList {
public static void main(String[] args) throws Exception {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2021, 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
@@ -42,6 +42,7 @@
*/

import jdk.test.lib.Platform;
import jdk.test.lib.helpers.ClassFileInstaller;

public class FieldLayoutFlags {
static final String[][] flags = {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2021, 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
@@ -36,6 +36,7 @@
import jdk.test.lib.compiler.CompilerUtils;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.helpers.ClassFileInstaller;
import java.io.File;
import java.nio.file.Path;
import java.util.ArrayList;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2021, 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
@@ -34,6 +34,7 @@

import java.io.File;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;

public class PackageSealing {
public static void main(String args[]) throws Exception {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2021, 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
@@ -34,6 +34,7 @@

import java.io.File;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;

public class WrongClasspath {

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@@ -39,6 +39,7 @@
import java.nio.file.Paths;
import jdk.test.lib.cds.CDSTestUtils;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;

public class ArchivedIntegerCacheTest {

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@@ -41,6 +41,7 @@
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.cds.CDSTestUtils;
import jdk.test.lib.helpers.ClassFileInstaller;
import sun.hotspot.WhiteBox;

public class ArchivedModuleComboTest {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@@ -34,6 +34,7 @@

import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.helpers.ClassFileInstaller;

public class ArchivedModuleCompareTest {
public static void main(String[] args) throws Exception {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@@ -41,6 +41,7 @@
import jdk.test.lib.compiler.CompilerUtils;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.helpers.ClassFileInstaller;

public class ArchivedModuleWithCustomImageTest {
private static final String JAVA_HOME = System.getProperty("java.home");
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@@ -38,6 +38,7 @@
*/

import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;
import sun.hotspot.WhiteBox;

public class CheckCachedMirrorTest {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, 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
@@ -38,6 +38,7 @@
*/

import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;
import sun.hotspot.WhiteBox;

public class CheckCachedResolvedReferences {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, 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
@@ -36,6 +36,7 @@
*/

import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;

public class GCStressTest {
public static void main(String[] args) throws Exception {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@@ -35,6 +35,7 @@
*/

import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;
import sun.hotspot.WhiteBox;

public class MirrorWithReferenceFieldsTest {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@@ -35,6 +35,7 @@
*/

import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;
import sun.hotspot.WhiteBox;

public class PrimitiveTypesTest {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, 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
@@ -43,6 +43,7 @@
import jdk.test.lib.cds.CDSOptions;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.helpers.ClassFileInstaller;

public class RedefineClassTest {
public static String bootClasses[] = {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@@ -34,6 +34,7 @@
*/

import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;

public class CondyHelloTest {

@@ -40,6 +40,7 @@
*/

import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;
import sun.hotspot.WhiteBox;

public class HelloCustom {
@@ -45,6 +45,7 @@
import java.util.HashSet;
import java.util.List;
import sun.hotspot.WhiteBox;
import jdk.test.lib.helpers.ClassFileInstaller;

public class ArchiveConsistency extends DynamicArchiveTestBase {
public static WhiteBox wb;
@@ -38,6 +38,8 @@
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. ArchivedSuperIf
*/

import jdk.test.lib.helpers.ClassFileInstaller;

public class ArchivedSuperIf extends DynamicArchiveTestBase {
public static void main(String[] args) throws Exception {
runTest(ArchivedSuperIf::test);
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2021, 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
@@ -35,6 +35,8 @@
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. ArrayKlasses
*/

import jdk.test.lib.helpers.ClassFileInstaller;

public class ArrayKlasses extends DynamicArchiveTestBase {
public static void main(String[] args) throws Exception {
runTest(ArrayKlasses::test);
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2021, 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
@@ -35,6 +35,8 @@
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. BasicLambdaTest
*/

import jdk.test.lib.helpers.ClassFileInstaller;

public class BasicLambdaTest extends DynamicArchiveTestBase {
public static void main(String[] args) throws Exception {
runTest(BasicLambdaTest::test);
@@ -37,6 +37,8 @@
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. ClassResolutionFailure
*/

import jdk.test.lib.helpers.ClassFileInstaller;

public class ClassResolutionFailure extends DynamicArchiveTestBase {

public static void main(String[] args) throws Exception {
@@ -38,6 +38,7 @@
*/

import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.helpers.ClassFileInstaller;
import jtreg.SkippedException;

public class DynamicArchiveRelocationTest extends DynamicArchiveTestBase {

0 comments on commit e834f99

Please sign in to comment.