diff --git a/test/hotspot/jtreg/applications/jcstress/README b/test/hotspot/jtreg/applications/jcstress/README index 659938514bc..842b047a776 100644 --- a/test/hotspot/jtreg/applications/jcstress/README +++ b/test/hotspot/jtreg/applications/jcstress/README @@ -1,4 +1,4 @@ -Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. +Copyright (c) 2017, 2022, 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 @@ -37,5 +37,5 @@ The */Test.java files should never be modified directly, because they are generated by TestGenerator and therefore all required changes must be made in that class. -[1] https://wiki.openjdk.java.net/display/CodeTools/jcstress +[1] https://wiki.openjdk.org/display/CodeTools/jcstress diff --git a/test/hotspot/jtreg/applications/jcstress/TestGenerator.java b/test/hotspot/jtreg/applications/jcstress/TestGenerator.java index fc7a95f1e7c..2571a64df7b 100644 --- a/test/hotspot/jtreg/applications/jcstress/TestGenerator.java +++ b/test/hotspot/jtreg/applications/jcstress/TestGenerator.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2022, 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 @@ -56,7 +56,7 @@ import java.util.function.Predicate; * added to classpath. One can replace @notest by @test in jtreg test * description above to run this class with jtreg. * - * @see jcstress + * @see jcstress */ public class TestGenerator { private static final String COPYRIGHT; diff --git a/test/hotspot/jtreg/compiler/c2/Test6880034.java b/test/hotspot/jtreg/compiler/c2/Test6880034.java index 628e7b230ac..c69c902ecaf 100644 --- a/test/hotspot/jtreg/compiler/c2/Test6880034.java +++ b/test/hotspot/jtreg/compiler/c2/Test6880034.java @@ -52,7 +52,7 @@ package compiler.c2; // an incorrect result on 32-bit server VMs on SPARC due to a regression // introduced by the change: "6420645: Create a vm that uses compressed oops // for up to 32gb heapsizes" -// (http://hg.openjdk.java.net/jdk7/jdk7/hotspot/rev/ba764ed4b6f2). Further +// (https://git.openjdk.org/jdk/commit/4a831d4). Further // investigation showed that change 6420645 is not really the root cause of // this error but only reveals a problem with the float register encodings in // sparc.ad which was hidden until now. diff --git a/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/TestDynamicConstant.java b/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/TestDynamicConstant.java index bf399a05756..6da3ce37edc 100644 --- a/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/TestDynamicConstant.java +++ b/test/hotspot/jtreg/compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test/TestDynamicConstant.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2021, 2022, 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 @@ -66,8 +66,8 @@ import jdk.vm.ci.runtime.JVMCI; /** * Tests support for Dynamic constants and {@link jdk.vm.ci.meta.ConstantPool#lookupBootstrapMethodInvocation}. * - * @see "https://openjdk.java.net/jeps/309" - * @see "https://bugs.openjdk.java.net/browse/JDK-8177279" + * @see "https://openjdk.org/jeps/309" + * @see "https://bugs.openjdk.org/browse/JDK-8177279" */ public class TestDynamicConstant implements Opcodes { diff --git a/test/hotspot/jtreg/compiler/lib/ir_framework/README.md b/test/hotspot/jtreg/compiler/lib/ir_framework/README.md index 760f86b356b..049dc187ce1 100644 --- a/test/hotspot/jtreg/compiler/lib/ir_framework/README.md +++ b/test/hotspot/jtreg/compiler/lib/ir_framework/README.md @@ -123,7 +123,7 @@ More information about the internals and the workflow of the framework can be fo ## 4. Internal Framework Tests There are various tests to verify the correctness of the test framework. These tests can be found in [ir_framework](../../../testlibrary_tests/ir_framework) and can directly be run with JTreg. The tests are part of the normal JTreg tests of HotSpot and should be run upon changing the framework code as a minimal form of testing. -Additional testing was performed by converting all compiler Inline Types tests that used the currently present IR test framework in Valhalla (see [JDK-8263024](https://bugs.openjdk.java.net/browse/JDK-8263024)). It is strongly advised to make sure a change to the framework still lets these converted tests in Valhalla pass as part of an additional testing step. +Additional testing was performed by converting all compiler Inline Types tests that used the currently present IR test framework in Valhalla (see [JDK-8263024](https://bugs.openjdk.org/browse/JDK-8263024)). It is strongly advised to make sure a change to the framework still lets these converted tests in Valhalla pass as part of an additional testing step. ## 5. Framework Package Structure A user only needs to import classes from the package `compiler.lib.ir_framework` (e.g. `import compiler.lib.ir_framework.*;`) which represents the interface classes to the framework. The remaining framework internal classes are kept in separate subpackages and should not directly be imported: @@ -134,4 +134,4 @@ A user only needs to import classes from the package `compiler.lib.ir_framework` - `compiler.lib.ir_framework.shared`: These classes can be called from either the driver, flag, or test VM. ## 6. Summary -The initial design and feature set was kept simple and straight forward and serves well for small to medium sized tests. There are a lot of possibilities to further enhance the framework and make it more powerful. This can be tackled in additional RFEs. A few ideas can be found as subtasks of the [initial RFE](https://bugs.openjdk.java.net/browse/JDK-8254129) for this framework. +The initial design and feature set was kept simple and straight forward and serves well for small to medium sized tests. There are a lot of possibilities to further enhance the framework and make it more powerful. This can be tackled in additional RFEs. A few ideas can be found as subtasks of the [initial RFE](https://bugs.openjdk.org/browse/JDK-8254129) for this framework. diff --git a/test/hotspot/jtreg/compiler/membars/DekkerTest.java b/test/hotspot/jtreg/compiler/membars/DekkerTest.java index 6036ea2249a..2f329588abe 100644 --- a/test/hotspot/jtreg/compiler/membars/DekkerTest.java +++ b/test/hotspot/jtreg/compiler/membars/DekkerTest.java @@ -47,7 +47,7 @@ public class DekkerTest { /* Read After Write Test (basically a simple Dekker test with volatile variables) Derived from the original jcstress test, available at: - http://hg.openjdk.java.net/code-tools/jcstress/file/6c339a5aa00d/ + hhttps://git.openjdk.org/jcstress/commit/15acd86 tests-custom/src/main/java/org/openjdk/jcstress/tests/volatiles/DekkerTest.java */ diff --git a/test/hotspot/jtreg/compiler/vectorapi/VectorMaskCastTest.java b/test/hotspot/jtreg/compiler/vectorapi/VectorMaskCastTest.java index fa4da60c40b..ff70cb33876 100644 --- a/test/hotspot/jtreg/compiler/vectorapi/VectorMaskCastTest.java +++ b/test/hotspot/jtreg/compiler/vectorapi/VectorMaskCastTest.java @@ -54,7 +54,7 @@ import jdk.test.lib.Utils; // supplement, we add more tests for vector mask cast operations, which could be intrinsified // by c2 compiler to generate vector/mask instructions on supported targets. // -// [1] https://bugs.openjdk.java.net/browse/JDK-8259610 +// [1] https://bugs.openjdk.org/browse/JDK-8259610 public class VectorMaskCastTest { diff --git a/test/hotspot/jtreg/gc/g1/logging/TestG1LoggingFailure.java b/test/hotspot/jtreg/gc/g1/logging/TestG1LoggingFailure.java index 3165cfd53e4..befa34dea65 100644 --- a/test/hotspot/jtreg/gc/g1/logging/TestG1LoggingFailure.java +++ b/test/hotspot/jtreg/gc/g1/logging/TestG1LoggingFailure.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2022, 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 @@ -55,7 +55,7 @@ public class TestG1LoggingFailure { options.add(Alloc.class.getName()); - // According to https://bugs.openjdk.java.net/browse/JDK-8146009 failure happens not every time. + // According to https://bugs.openjdk.org/browse/JDK-8146009 failure happens not every time. // Will try to reproduce this failure. for (int iteration = 0; iteration < 40; ++iteration) { startVM(options); diff --git a/test/hotspot/jtreg/gc/testlibrary/PerfCounter.java b/test/hotspot/jtreg/gc/testlibrary/PerfCounter.java index 90e9290e43a..f42e69c67b6 100644 --- a/test/hotspot/jtreg/gc/testlibrary/PerfCounter.java +++ b/test/hotspot/jtreg/gc/testlibrary/PerfCounter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2022, 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 @@ -28,7 +28,7 @@ import sun.jvmstat.monitor.Monitor; /** * Represents a performance counter in the JVM. * - * See http://openjdk.java.net/groups/hotspot/docs/Serviceability.html#bjvmstat + * See https://openjdk.org/groups/hotspot/docs/Serviceability.html#bjvmstat * for more details about performance counters. */ public class PerfCounter { diff --git a/test/hotspot/jtreg/runtime/cds/DeterministicDump.java b/test/hotspot/jtreg/runtime/cds/DeterministicDump.java index 6e8ccffce27..9f350bc91d7 100644 --- a/test/hotspot/jtreg/runtime/cds/DeterministicDump.java +++ b/test/hotspot/jtreg/runtime/cds/DeterministicDump.java @@ -56,7 +56,7 @@ public class DeterministicDump { if (Platform.is64bit()) { if (!compressed) { System.out.println("CDS archives with uncompressed oops are still non-deterministic"); - System.out.println("See https://bugs.openjdk.java.net/browse/JDK-8282828"); + System.out.println("See https://bugs.openjdk.org/browse/JDK-8282828"); return; } // These options are available only on 64-bit. diff --git a/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LotsUnloadTest.java b/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LotsUnloadTest.java index 0a45ef90a3f..b98f1deaa9f 100644 --- a/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LotsUnloadTest.java +++ b/test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive/LotsUnloadTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2021, 2022, 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,7 +36,7 @@ * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. LotsUnloadTest */ -// Note: for https://bugs.openjdk.java.net/browse/JDK-8278602, this test case does NOT +// Note: for https://bugs.openjdk.org/browse/JDK-8278602, this test case does NOT // reliably reproduce the problem. Reproduction requires patching ZGC. Please see // the bug report for instructions. // diff --git a/test/jaxp/javax/xml/jaxp/libs/jaxp/library/JAXPTestPolicy.java b/test/jaxp/javax/xml/jaxp/libs/jaxp/library/JAXPTestPolicy.java index 060d65de360..200405bc596 100644 --- a/test/jaxp/javax/xml/jaxp/libs/jaxp/library/JAXPTestPolicy.java +++ b/test/jaxp/javax/xml/jaxp/libs/jaxp/library/JAXPTestPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2022, 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 @@ -53,7 +53,7 @@ public class JAXPTestPolicy extends BasePolicy { policyManager.addPermission(new RuntimePermission("accessClassInPackage.com.sun.org.apache.xalan.internal.xsltc.trax")); policyManager.addPermission(new RuntimePermission("accessClassInPackage.com.sun.xml.internal.stream")); - policyManager.addPermission(new SocketPermission("openjdk.java.net:80", "connect,resolve")); + policyManager.addPermission(new SocketPermission("openjdk.org:80", "connect,resolve")); policyManager.addPermission(new SocketPermission("www.w3.org:80", "connect,resolve")); } } diff --git a/test/jaxp/javax/xml/jaxp/libs/jaxp/library/NetAccessPolicy.java b/test/jaxp/javax/xml/jaxp/libs/jaxp/library/NetAccessPolicy.java index f7037cffe99..928003a2ece 100644 --- a/test/jaxp/javax/xml/jaxp/libs/jaxp/library/NetAccessPolicy.java +++ b/test/jaxp/javax/xml/jaxp/libs/jaxp/library/NetAccessPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2022, 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,7 +36,7 @@ public class NetAccessPolicy extends BasePolicy { // suppose to only run othervm mode if (isRunWithSecurityManager()) { JAXPPolicyManager policyManager = JAXPPolicyManager.getJAXPPolicyManager(true); - policyManager.addPermission(new SocketPermission("openjdk.java.net:80", "connect,resolve")); + policyManager.addPermission(new SocketPermission("openjdk.org:80", "connect,resolve")); policyManager.addPermission(new SocketPermission("www.w3.org:80", "connect,resolve")); } } diff --git a/test/jaxp/javax/xml/jaxp/unittest/catalog/files/delegatecatalog.xml b/test/jaxp/javax/xml/jaxp/unittest/catalog/files/delegatecatalog.xml index b398f5ba30d..ca02c9eafe1 100644 --- a/test/jaxp/javax/xml/jaxp/unittest/catalog/files/delegatecatalog.xml +++ b/test/jaxp/javax/xml/jaxp/unittest/catalog/files/delegatecatalog.xml @@ -2,24 +2,24 @@ - - - - - + + - - - + - + - + diff --git a/test/jdk/java/awt/Mixing/AWT_Mixing/HierarchyBoundsListenerMixingTest.java b/test/jdk/java/awt/Mixing/AWT_Mixing/HierarchyBoundsListenerMixingTest.java index 0bd5dd19272..108cdc99d1f 100644 --- a/test/jdk/java/awt/Mixing/AWT_Mixing/HierarchyBoundsListenerMixingTest.java +++ b/test/jdk/java/awt/Mixing/AWT_Mixing/HierarchyBoundsListenerMixingTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2022, 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 @@ -30,7 +30,7 @@ import java.io.*; /** * AWT Mixing test for HierarchyBoundsListener ancestors. - *

See CR6768230 for details. + *

See CR6768230 for details. */ /* * @test diff --git a/test/jdk/java/awt/Mixing/AWT_Mixing/JGlassPaneInternalFrameOverlapping.java b/test/jdk/java/awt/Mixing/AWT_Mixing/JGlassPaneInternalFrameOverlapping.java index 843b4e8832f..5331fb11d39 100644 --- a/test/jdk/java/awt/Mixing/AWT_Mixing/JGlassPaneInternalFrameOverlapping.java +++ b/test/jdk/java/awt/Mixing/AWT_Mixing/JGlassPaneInternalFrameOverlapping.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2022, 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,8 +35,8 @@ import test.java.awt.regtesthelpers.Util; /** * AWT/Swing overlapping test with JInternalFrame being put in GlassPane. - * See JDK-6637655 and - * JDK-6985776. + * See JDK-6637655 and + * JDK-6985776. *

See base class for details. */ /* diff --git a/test/jdk/java/awt/Mixing/AWT_Mixing/JGlassPaneMoveOverlapping.java b/test/jdk/java/awt/Mixing/AWT_Mixing/JGlassPaneMoveOverlapping.java index 4c917485e1d..5ac719d70a8 100644 --- a/test/jdk/java/awt/Mixing/AWT_Mixing/JGlassPaneMoveOverlapping.java +++ b/test/jdk/java/awt/Mixing/AWT_Mixing/JGlassPaneMoveOverlapping.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2022, 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,8 +36,8 @@ import test.java.awt.regtesthelpers.Util; /** * AWT/Swing overlapping test with JInternalFrame being moved in GlassPane. - * See JDK-6637655 and - * JDK-6981919. + * See JDK-6637655 and + * JDK-6981919. *

See base class for details. */ /* diff --git a/test/jdk/java/awt/Mixing/AWT_Mixing/MixingPanelsResizing.java b/test/jdk/java/awt/Mixing/AWT_Mixing/MixingPanelsResizing.java index 1d827ce569f..39a59dc2a5c 100644 --- a/test/jdk/java/awt/Mixing/AWT_Mixing/MixingPanelsResizing.java +++ b/test/jdk/java/awt/Mixing/AWT_Mixing/MixingPanelsResizing.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2022, 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 @@ -30,7 +30,7 @@ import test.java.awt.regtesthelpers.Util; /** * AWT/Swing overlapping test for Panel and JPanel behavior during resizing. - *

See JDK-6786219 for details + *

See JDK-6786219 for details */ /* * @test diff --git a/test/jdk/java/awt/Mixing/AWT_Mixing/OpaqueOverlapping.java b/test/jdk/java/awt/Mixing/AWT_Mixing/OpaqueOverlapping.java index 8587454f301..4975cc165c2 100644 --- a/test/jdk/java/awt/Mixing/AWT_Mixing/OpaqueOverlapping.java +++ b/test/jdk/java/awt/Mixing/AWT_Mixing/OpaqueOverlapping.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2022, 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 @@ -37,7 +37,7 @@ import test.java.awt.regtesthelpers.Util; /** * AWT/Swing overlapping test for opaque Swing components. *

This test verify if AWT components are drawn correctly under opaque components. - *

See JDK-6776743 for details + *

See JDK-6776743 for details *

See base class for test info. */ /* diff --git a/test/jdk/java/awt/Toolkit/Headless/HeadlessToolkit.java b/test/jdk/java/awt/Toolkit/Headless/HeadlessToolkit.java index 0076bdb2067..87970aab10a 100644 --- a/test/jdk/java/awt/Toolkit/Headless/HeadlessToolkit.java +++ b/test/jdk/java/awt/Toolkit/Headless/HeadlessToolkit.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2022, 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 @@ -277,10 +277,10 @@ public class HeadlessToolkit { } - im = tk.getImage(new URL("http://openjdk.java.net/images/openjdk.png")); + im = tk.getImage(new URL("https://openjdk.org/images/openjdk.png")); im.flush(); - im = tk.createImage(new URL("http://openjdk.java.net/images/openjdk.png")); + im = tk.createImage(new URL("https://openjdk.org/images/openjdk.png")); im.flush(); MemoryImageSource mis; diff --git a/test/jdk/java/net/InetAddress/IsReachableViaLoopbackTest.java b/test/jdk/java/net/InetAddress/IsReachableViaLoopbackTest.java index 5364ba7895e..4d340a72fba 100644 --- a/test/jdk/java/net/InetAddress/IsReachableViaLoopbackTest.java +++ b/test/jdk/java/net/InetAddress/IsReachableViaLoopbackTest.java @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2015, 2022, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + import java.io.*; import java.net.*; import java.util.*; @@ -13,7 +36,7 @@ public class IsReachableViaLoopbackTest { public static void main(String[] args) { try { InetAddress addr = InetAddress.getByName("localhost"); - InetAddress remoteAddr = InetAddress.getByName("bugs.openjdk.java.net"); + InetAddress remoteAddr = InetAddress.getByName("bugs.openjdk.org"); if (!addr.isReachable(10000)) throw new RuntimeException("Localhost should always be reachable"); NetworkInterface inf = NetworkInterface.getByInetAddress(addr); diff --git a/test/jdk/java/net/httpclient/offline/OfflineTesting.java b/test/jdk/java/net/httpclient/offline/OfflineTesting.java index d33f806d31c..c747f5b2b88 100644 --- a/test/jdk/java/net/httpclient/offline/OfflineTesting.java +++ b/test/jdk/java/net/httpclient/offline/OfflineTesting.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2022, 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 @@ -66,7 +66,7 @@ public class OfflineTesting { HttpClient client = getClient(); HttpRequest request = HttpRequest.newBuilder() - .uri(URI.create("http://openjdk.java.net/")) + .uri(URI.create("https://openjdk.org/")) .build(); client.sendAsync(request, BodyHandlers.ofString()) @@ -83,7 +83,7 @@ public class OfflineTesting { HttpClient client = getClient(); HttpRequest request = HttpRequest.newBuilder() - .uri(URI.create("http://openjdk.java.net/")) + .uri(URI.create("https://openjdk.org/")) .build(); client.sendAsync(request, BodyHandlers.ofByteArray()) @@ -115,7 +115,7 @@ public class OfflineTesting { ""); HttpRequest request = HttpRequest.newBuilder() - .uri(URI.create("http://openjdk.java.net/notFound")) + .uri(URI.create("https://openjdk.org/notFound")) .build(); client.sendAsync(request, BodyHandlers.ofString()) @@ -136,7 +136,7 @@ public class OfflineTesting { headersOf("Connection", "keep-alive")); HttpRequest request = HttpRequest.newBuilder() - .uri(URI.create("http://openjdk.java.net/echo")) + .uri(URI.create("https://openjdk.org/echo")) .POST(BodyPublishers.ofString("Hello World")) .build(); @@ -156,7 +156,7 @@ public class OfflineTesting { headersOf("Connection", "keep-alive")); HttpRequest request = HttpRequest.newBuilder() - .uri(URI.create("http://openjdk.java.net/echo")) + .uri(URI.create("https://openjdk.org/echo")) .POST(BodyPublishers.ofString("Hello chegar!!")) .build(); diff --git a/test/jdk/java/util/Base64/TestBase64.java b/test/jdk/java/util/Base64/TestBase64.java index e360a2c584d..81d2aa85806 100644 --- a/test/jdk/java/util/Base64/TestBase64.java +++ b/test/jdk/java/util/Base64/TestBase64.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2022, 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 @@ -146,7 +146,7 @@ public class TestBase64 { testDecoderKeepsAbstinence(Base64.getMimeDecoder()); // tests patch addressing JDK-8222187 - // https://bugs.openjdk.java.net/browse/JDK-8222187 + // https://bugs.openjdk.org/browse/JDK-8222187 testJDK_8222187(); } diff --git a/test/jdk/java/util/concurrent/locks/LockSupport/ParkLoops.java b/test/jdk/java/util/concurrent/locks/LockSupport/ParkLoops.java index dc204906551..8ae162d674d 100644 --- a/test/jdk/java/util/concurrent/locks/LockSupport/ParkLoops.java +++ b/test/jdk/java/util/concurrent/locks/LockSupport/ParkLoops.java @@ -53,7 +53,7 @@ public final class ParkLoops { static class Parker implements Runnable { static { // Reduce the risk of rare disastrous classloading in first call to - // LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773 + // LockSupport.park: https://bugs.openjdk.org/browse/JDK-8074773 Class ensureLoaded = LockSupport.class; } @@ -84,7 +84,7 @@ public final class ParkLoops { static class Unparker implements Runnable { static { // Reduce the risk of rare disastrous classloading in first call to - // LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773 + // LockSupport.park: https://bugs.openjdk.org/browse/JDK-8074773 Class ensureLoaded = LockSupport.class; } diff --git a/test/jdk/java/util/concurrent/tck/ConcurrentLinkedDequeTest.java b/test/jdk/java/util/concurrent/tck/ConcurrentLinkedDequeTest.java index 58e4a32143b..62041e1d887 100644 --- a/test/jdk/java/util/concurrent/tck/ConcurrentLinkedDequeTest.java +++ b/test/jdk/java/util/concurrent/tck/ConcurrentLinkedDequeTest.java @@ -941,7 +941,7 @@ public class ConcurrentLinkedDequeTest extends JSR166TestCase { /** * Non-traversing Deque operations are linearizable. - * https://bugs.openjdk.java.net/browse/JDK-8188900 + * https://bugs.openjdk.org/browse/JDK-8188900 * ant -Djsr166.expensiveTests=true -Djsr166.tckTestClass=ConcurrentLinkedDequeTest -Djsr166.methodFilter=testBug8188900 tck */ public void testBug8188900() { @@ -998,7 +998,7 @@ public class ConcurrentLinkedDequeTest extends JSR166TestCase { /** * Non-traversing Deque operations (that return null) are linearizable. * Don't return null when the deque is observably never empty. - * https://bugs.openjdk.java.net/browse/JDK-8189387 + * https://bugs.openjdk.org/browse/JDK-8189387 * ant -Djsr166.expensiveTests=true -Djsr166.tckTestClass=ConcurrentLinkedDequeTest -Djsr166.methodFilter=testBug8189387 tck */ public void testBug8189387() { diff --git a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java index 662d4303ac6..427ec44cf5f 100644 --- a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java +++ b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java @@ -287,7 +287,7 @@ public class JSR166TestCase extends TestCase { * May be initialized from any of: * - the "jsr166.delay.factor" system property * - the "test.timeout.factor" system property (as used by jtreg) - * See: http://openjdk.java.net/jtreg/tag-spec.html + * See: https://openjdk.org/jtreg/tag-spec.html * - hard-coded fuzz factor when using a known slowpoke VM */ private static final float delayFactor = delayFactor(); @@ -769,7 +769,7 @@ public class JSR166TestCase extends TestCase { * Returns the shortest timed delay. This can be scaled up for * slow machines using the jsr166.delay.factor system property, * or via jtreg's -timeoutFactor: flag. - * http://openjdk.java.net/jtreg/command-help.html + * https://openjdk.org/jtreg/command-help.html */ protected long getShortDelay() { return (long) (50 * delayFactor); diff --git a/test/jdk/java/util/concurrent/tck/LockSupportTest.java b/test/jdk/java/util/concurrent/tck/LockSupportTest.java index 653e3591f7f..1010ef0f77a 100644 --- a/test/jdk/java/util/concurrent/tck/LockSupportTest.java +++ b/test/jdk/java/util/concurrent/tck/LockSupportTest.java @@ -54,7 +54,7 @@ public class LockSupportTest extends JSR166TestCase { static { // Reduce the risk of rare disastrous classloading in first call to - // LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773 + // LockSupport.park: https://bugs.openjdk.org/browse/JDK-8074773 Class ensureLoaded = LockSupport.class; } diff --git a/test/jdk/java/util/concurrent/tck/MapTest.java b/test/jdk/java/util/concurrent/tck/MapTest.java index 61579f3e7c3..8f3a2bc4182 100644 --- a/test/jdk/java/util/concurrent/tck/MapTest.java +++ b/test/jdk/java/util/concurrent/tck/MapTest.java @@ -121,7 +121,7 @@ public class MapTest extends JSR166TestCase { /** * Tests and extends the scenario reported in - * https://bugs.openjdk.java.net/browse/JDK-8186171 + * https://bugs.openjdk.org/browse/JDK-8186171 * HashMap: Entry.setValue may not work after Iterator.remove() called for previous entries * ant -Djsr166.tckTestClass=HashMapTest -Djsr166.methodFilter=testBug8186171 -Djsr166.runsPerTest=1000 tck */ diff --git a/test/jdk/java/util/concurrent/tck/ScheduledExecutorTest.java b/test/jdk/java/util/concurrent/tck/ScheduledExecutorTest.java index c100ea0e8f0..26510b3bfdd 100644 --- a/test/jdk/java/util/concurrent/tck/ScheduledExecutorTest.java +++ b/test/jdk/java/util/concurrent/tck/ScheduledExecutorTest.java @@ -1337,7 +1337,7 @@ public class ScheduledExecutorTest extends JSR166TestCase { /** * A fixed delay task with overflowing period should not prevent a * one-shot task from executing. - * https://bugs.openjdk.java.net/browse/JDK-8051859 + * https://bugs.openjdk.org/browse/JDK-8051859 */ @SuppressWarnings("FutureReturnValueIgnored") public void testScheduleWithFixedDelay_overflow() throws Exception { diff --git a/test/jdk/java/util/logging/LogManagerAppContextDeadlock.java b/test/jdk/java/util/logging/LogManagerAppContextDeadlock.java index 4116d69620e..f39b46b43d1 100644 --- a/test/jdk/java/util/logging/LogManagerAppContextDeadlock.java +++ b/test/jdk/java/util/logging/LogManagerAppContextDeadlock.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2022, 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 @@ -206,7 +206,7 @@ public class LogManagerAppContextDeadlock { // If we don't initialize LogManager here, there will be // a deadlock. - // See + // See // for more details. Logger.getLogger("main").info("starting..."); try { diff --git a/test/jdk/javax/swing/ImageIcon/LoadInterruptTest.java b/test/jdk/javax/swing/ImageIcon/LoadInterruptTest.java index 17891d3c334..b090662eba4 100644 --- a/test/jdk/javax/swing/ImageIcon/LoadInterruptTest.java +++ b/test/jdk/javax/swing/ImageIcon/LoadInterruptTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2022, 2022, 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 @@ -72,7 +72,7 @@ public class LoadInterruptTest { setUpOutput(); Thread.currentThread().interrupt(); - ImageIcon i = new ImageIcon("https://openjdk.java.net/images/openjdk.png"); + ImageIcon i = new ImageIcon("https://openjdk.org/images/openjdk.png"); int status = i.getImageLoadStatus(); System.out.flush(); String outString = testOut.toString(StandardCharsets.UTF_8); diff --git a/test/jdk/javax/xml/jaxp/testng/parse/EntityCharacterEventOrder.java b/test/jdk/javax/xml/jaxp/testng/parse/EntityCharacterEventOrder.java index 5a5f57baa9b..313fa29a974 100644 --- a/test/jdk/javax/xml/jaxp/testng/parse/EntityCharacterEventOrder.java +++ b/test/jdk/javax/xml/jaxp/testng/parse/EntityCharacterEventOrder.java @@ -16,7 +16,7 @@ import org.xml.sax.helpers.XMLReaderFactory; /** * JDK-6770436: Entity callback order differs between Java1.5 and Java1.6 - * https://bugs.openjdk.java.net/browse/JDK-6770436 + * https://bugs.openjdk.org/browse/JDK-6770436 * */ diff --git a/test/jdk/javax/xml/jaxp/testng/parse/XMLEntityScannerLoad.java b/test/jdk/javax/xml/jaxp/testng/parse/XMLEntityScannerLoad.java index 36abd0c1458..308f17382fc 100644 --- a/test/jdk/javax/xml/jaxp/testng/parse/XMLEntityScannerLoad.java +++ b/test/jdk/javax/xml/jaxp/testng/parse/XMLEntityScannerLoad.java @@ -1,3 +1,26 @@ +/* + * Copyright (c) 2014, 2022, 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 + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + package parse; import java.io.ByteArrayInputStream; @@ -13,11 +36,11 @@ import org.xml.sax.SAXException; /** * JDK-8059327: XML parser returns corrupt attribute value - * https://bugs.openjdk.java.net/browse/JDK-8059327 + * https://bugs.openjdk.org/browse/JDK-8059327 * * Also: * JDK-8061550: XMLEntityScanner can corrupt corrupt content during parsing - * https://bugs.openjdk.java.net/browse/JDK-8061550 + * https://bugs.openjdk.org/browse/JDK-8061550 * * @Summary: verify that the character cache in XMLEntityScanner is reset properly */ diff --git a/test/jdk/javax/xml/jaxp/testng/parse/jdk7156085/UTF8ReaderBug.java b/test/jdk/javax/xml/jaxp/testng/parse/jdk7156085/UTF8ReaderBug.java index 993fc61b879..587d36e921f 100644 --- a/test/jdk/javax/xml/jaxp/testng/parse/jdk7156085/UTF8ReaderBug.java +++ b/test/jdk/javax/xml/jaxp/testng/parse/jdk7156085/UTF8ReaderBug.java @@ -33,7 +33,7 @@ import org.testng.annotations.Test; /** * JDK-7156085: ArrayIndexOutOfBoundsException throws in UTF8Reader of SAXParser - * https://bugs.openjdk.java.net/browse/JDK-7156085 + * https://bugs.openjdk.org/browse/JDK-7156085 * * XERCESJ-1257: buffer overflow in UTF8Reader for characters out of BMP * https://issues.apache.org/jira/browse/XERCESJ-1257 diff --git a/test/jdk/sanity/client/lib/Extensions/src/org/jtregext/GuiTestListener.java b/test/jdk/sanity/client/lib/Extensions/src/org/jtregext/GuiTestListener.java index 407fd52d292..751551fc25b 100644 --- a/test/jdk/sanity/client/lib/Extensions/src/org/jtregext/GuiTestListener.java +++ b/test/jdk/sanity/client/lib/Extensions/src/org/jtregext/GuiTestListener.java @@ -1,7 +1,7 @@ package org.jtregext; /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2022, 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 @@ -30,7 +30,7 @@ import org.testng.ITestContext; import org.testng.ITestListener; import org.testng.ITestResult; -// TODO: Remove this once https://bugs.openjdk.java.net/browse/JDK-8151671 is fixed +// TODO: Remove this once https://bugs.openjdk.org/browse/JDK-8151671 is fixed public class GuiTestListener implements ITestListener { private void afterTest() { diff --git a/test/jdk/sanity/client/lib/SwingSet2/README b/test/jdk/sanity/client/lib/SwingSet2/README index 2016753dd7d..87d7ec5e588 100644 --- a/test/jdk/sanity/client/lib/SwingSet2/README +++ b/test/jdk/sanity/client/lib/SwingSet2/README @@ -1,4 +1,4 @@ -The content of this src folder was originally taken from openjdk SwingSet2 demo: http://hg.openjdk.java.net/jdk/jdk/file/2d5d75263e77/src/demo/share/jfc/SwingSet2. +The content of this src folder was originally taken from openjdk SwingSet2 demo: https://git.openjdk.org/jdk/tree/92ec4c5/src/demo/share/jfc/SwingSet2. Then it was modified to increase testability and removed extra content and extra dependencies. This is NOT the official location of the SwingSet2 demo. \ No newline at end of file diff --git a/test/jdk/sanity/client/lib/jemmy/README b/test/jdk/sanity/client/lib/jemmy/README index 629e5292200..98fdcf650f2 100644 --- a/test/jdk/sanity/client/lib/jemmy/README +++ b/test/jdk/sanity/client/lib/jemmy/README @@ -1,3 +1,3 @@ -This src folder contains a copy of Jemmy 2 library sources from http://hg.openjdk.java.net/code-tools/jemmy/v2 +This src folder contains a copy of Jemmy 2 library sources from https://git.openjdk.org/jemmy-v2 If a change to Jemmy library is needed, please first suggest it to that repository. diff --git a/test/jdk/sun/security/ssl/ServerHandshaker/HelloExtensionsTest.java b/test/jdk/sun/security/ssl/ServerHandshaker/HelloExtensionsTest.java index bb84d5f01f9..392e882a19a 100644 --- a/test/jdk/sun/security/ssl/ServerHandshaker/HelloExtensionsTest.java +++ b/test/jdk/sun/security/ssl/ServerHandshaker/HelloExtensionsTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2022, 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 @@ -121,7 +121,7 @@ public class HelloExtensionsTest { Unknown (hash:0x3, signature:0x1), SHA1withECDSA, SHA1withRSA, SHA1withDSA Extension server_name, server_name: - [host_name: bugs.openjdk.java.net] + [host_name: bugs.openjdk.org] */ String hello = "16030300df010000db03035898b7826c8c0cc" + diff --git a/test/jdk/tools/jpackage/run_tests.sh b/test/jdk/tools/jpackage/run_tests.sh index bee01924d73..4c72d4a2030 100644 --- a/test/jdk/tools/jpackage/run_tests.sh +++ b/test/jdk/tools/jpackage/run_tests.sh @@ -29,7 +29,7 @@ # Fail fast set -e; set -o pipefail; -# $JT_BUNDLE_URL (Link can be obtained from https://openjdk.java.net/jtreg/ page) +# $JT_BUNDLE_URL (Link can be obtained from https://openjdk.org/jtreg/ page) jtreg_bundle=$JT_BUNDLE_URL workdir=/tmp/jpackage_jtreg_testing jtreg_jar=$workdir/jtreg/lib/jtreg.jar @@ -231,7 +231,7 @@ fi if [ -z "$JT_HOME" ]; then if [ -z "$JT_BUNDLE_URL" ]; then - fatal 'JT_HOME or JT_BUNDLE_URL environment variable is not set. Link to JTREG bundle can be found at https://openjdk.java.net/jtreg/'. + fatal 'JT_HOME or JT_BUNDLE_URL environment variable is not set. Link to JTREG bundle can be found at https://openjdk.org/jtreg/'. fi fi diff --git a/test/langtools/jdk/javadoc/doclet/testModules/TestModulePackages.java b/test/langtools/jdk/javadoc/doclet/testModules/TestModulePackages.java index 7b23cbc14f8..5ca8ed88339 100644 --- a/test/langtools/jdk/javadoc/doclet/testModules/TestModulePackages.java +++ b/test/langtools/jdk/javadoc/doclet/testModules/TestModulePackages.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2022, 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 @@ -57,7 +57,7 @@ public class TestModulePackages extends JavadocTester { tb = new ToolBox(); } - // @Test: See: https://bugs.openjdk.java.net/browse/JDK-8193107 + // @Test: See: https://bugs.openjdk.org/browse/JDK-8193107 public void empty(Path base) throws Exception { Path src = base.resolve("src"); new ModuleBuilder(tb, "m") diff --git a/test/langtools/tools/javac/MethodParameters/LambdaTest.java b/test/langtools/tools/javac/MethodParameters/LambdaTest.java index 66ec67c7fa4..0326888b6e6 100644 --- a/test/langtools/tools/javac/MethodParameters/LambdaTest.java +++ b/test/langtools/tools/javac/MethodParameters/LambdaTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2022, 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 @@ -32,7 +32,7 @@ */ /** - * Post https://bugs.openjdk.java.net/browse/JDK-8138729, this test verifies + * Post https://bugs.openjdk.org/browse/JDK-8138729, this test verifies * that MethodParameters attribute are NOT emitted for lambdas. */ class LambdaTest { diff --git a/test/langtools/tools/javac/MethodParameters/LegacyOutputTest/LegacyOutputTest.java b/test/langtools/tools/javac/MethodParameters/LegacyOutputTest/LegacyOutputTest.java index f3d5dbcdec5..d6f96332df5 100644 --- a/test/langtools/tools/javac/MethodParameters/LegacyOutputTest/LegacyOutputTest.java +++ b/test/langtools/tools/javac/MethodParameters/LegacyOutputTest/LegacyOutputTest.java @@ -48,7 +48,7 @@ import javax.tools.SimpleJavaFileObject; import javax.tools.ToolProvider; /** - * Post https://bugs.openjdk.java.net/browse/JDK-8190452, the test verifies that MethodParameters + * Post https://bugs.openjdk.org/browse/JDK-8190452, the test verifies that MethodParameters * attributes are not emitted when targeting --release < 8. */ public class LegacyOutputTest { diff --git a/test/langtools/tools/javac/api/ToolProvider/ToolProviderTest.java b/test/langtools/tools/javac/api/ToolProvider/ToolProviderTest.java index ceedbcb50e5..a212cd9a5c6 100644 --- a/test/langtools/tools/javac/api/ToolProvider/ToolProviderTest.java +++ b/test/langtools/tools/javac/api/ToolProvider/ToolProviderTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2022, 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,7 +41,7 @@ public class ToolProviderTest { public static void main(String... args) { // The following code allows the test to be skipped when run on // an exploded image. - // See https://bugs.openjdk.java.net/browse/JDK-8155858 + // See https://bugs.openjdk.org/browse/JDK-8155858 Path javaHome = Paths.get(System.getProperty("java.home")); Path image = javaHome.resolve("lib").resolve("modules"); Path modules = javaHome.resolve("modules"); diff --git a/test/langtools/tools/javac/lambda/MethodReferenceGenericTarget.java b/test/langtools/tools/javac/lambda/MethodReferenceGenericTarget.java index 2683d32e840..3f20fe6c792 100644 --- a/test/langtools/tools/javac/lambda/MethodReferenceGenericTarget.java +++ b/test/langtools/tools/javac/lambda/MethodReferenceGenericTarget.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2022, 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 @@ -59,7 +59,7 @@ public class MethodReferenceGenericTarget { } } -// snippet from https://bugs.openjdk.java.net/browse/JDK-8065303 +// snippet from https://bugs.openjdk.org/browse/JDK-8065303 class MethodReferenceTestPrivateTypeConversion { class MethodReferenceTestTypeConversion_E { diff --git a/test/micro/org/openjdk/bench/java/util/NCopiesBenchmarks.java b/test/micro/org/openjdk/bench/java/util/NCopiesBenchmarks.java index 0fb845059ed..41890f7ddad 100644 --- a/test/micro/org/openjdk/bench/java/util/NCopiesBenchmarks.java +++ b/test/micro/org/openjdk/bench/java/util/NCopiesBenchmarks.java @@ -7,7 +7,7 @@ import java.util.*; import java.util.concurrent.TimeUnit; /** - * @see JDK-8274715 + * @see JDK-8274715 */ @Fork(value = 3) @State(Scope.Thread)