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 @@
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 { "