8295470: Update openjdk.java.net => openjdk.org URLs in test code

Reviewed-by: michaelm, prr, darcy
This commit is contained in:
Magnus Ihse Bursie 2022-10-20 10:33:18 +00:00
parent 9d0cfd1130
commit d5a1521fde
45 changed files with 138 additions and 92 deletions

View File

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

View File

@ -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 <a href=https://wiki.openjdk.java.net/display/CodeTools/jcstress>jcstress</a>
* @see <a href=https://wiki.openjdk.org/display/CodeTools/jcstress>jcstress</a>
*/
public class TestGenerator {
private static final String COPYRIGHT;

View File

@ -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.

View File

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

View File

@ -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.

View File

@ -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
*/

View File

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

View File

@ -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);

View File

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

View File

@ -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.

View File

@ -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.
//

View File

@ -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"));
}
}

View File

@ -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"));
}
}

View File

@ -2,24 +2,24 @@
<catalog
xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<public publicId="-//W3C//DTD XHTML 1.0 Strict//EN"
<public publicId="-//W3C//DTD XHTML 1.0 Strict//EN"
uri="catalog/xhtml1-strict.dtd"/>
<systemSuffix systemIdSuffix="html1-strict.dtd"
uri="file:///share/mirrors/w3c/xhtml1/xhtml1-strict.dtd"/>
<public publicId="-//OPENJDK//XML CATALOG DTD//1.0" uri="public.dtd"/>
<system systemId="http://openjdk.java.net/xml/catalog/dtd/system.dtd" uri="system.dtd"/>
<rewriteSystem systemIdStartString="http://openjdk.java.net/"
<system systemId="https://openjdk.org/xml/catalog/dtd/system.dtd" uri="system.dtd"/>
<rewriteSystem systemIdStartString="https://openjdk.org/"
rewritePrefix="/C:/cygwin/home/huizwang/openjdk/jdk9-dev/jaxp1/" />
<rewriteSystem systemIdStartString="http://openjdk.java.net/xml/catalog/dtd/"
<rewriteSystem systemIdStartString="https://openjdk.org/xml/catalog/dtd/"
rewritePrefix="/C:/cygwin/home/huizwang/openjdk/jdk9-dev/jaxp1/jaxp-ri/src/unit-test/acatalogapi/" />
<public publicId="-//JAVASE//XML CATALOG DTD//DELEGATEPULIC" uri="delegatepublic.dtd"/>
<system systemId="http://java.com/xml/catalog/dtd/delegatesystem.dtd" uri="delegatesystem.dtd"/>
</catalog>

View File

@ -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.
* <p>See <a href="https://bugs.openjdk.java.net/browse/JDK-6768230">CR6768230</a> for details.
* <p>See <a href="https://bugs.openjdk.org/browse/JDK-6768230">CR6768230</a> for details.
*/
/*
* @test

View File

@ -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 <a href="https://bugs.openjdk.java.net/browse/JDK-6637655">JDK-6637655</a> and
* <a href="https://bugs.openjdk.java.net/browse/JDK-6985776">JDK-6985776</a>.
* See <a href="https://bugs.openjdk.org/browse/JDK-6637655">JDK-6637655</a> and
* <a href="https://bugs.openjdk.org/browse/JDK-6985776">JDK-6985776</a>.
* <p>See base class for details.
*/
/*

View File

@ -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 <a href="https://bugs.openjdk.java.net/browse/JDK-6637655">JDK-6637655</a> and
* <a href="https://bugs.openjdk.java.net/browse/JDK-6981919">JDK-6981919</a>.
* See <a href="https://bugs.openjdk.org/browse/JDK-6637655">JDK-6637655</a> and
* <a href="https://bugs.openjdk.org/browse/JDK-6981919">JDK-6981919</a>.
* <p>See base class for details.
*/
/*

View File

@ -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.
* <p>See <a href="https://bugs.openjdk.java.net/browse/JDK-6786219">JDK-6786219</a> for details
* <p>See <a href="https://bugs.openjdk.org/browse/JDK-6786219">JDK-6786219</a> for details
*/
/*
* @test

View File

@ -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.
* <p>This test verify if AWT components are drawn correctly under opaque components.
* <p>See <a href="https://bugs.openjdk.java.net/browse/JDK-6776743">JDK-6776743</a> for details
* <p>See <a href="https://bugs.openjdk.org/browse/JDK-6776743">JDK-6776743</a> for details
* <p>See base class for test info.
*/
/*

View File

@ -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;

View File

@ -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);

View File

@ -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 {
"</html>");
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();

View File

@ -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();
}

View File

@ -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;
}

View File

@ -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() {

View File

@ -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);

View File

@ -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;
}

View File

@ -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
*/

View File

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

View File

@ -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 <https://bugs.openjdk.java.net/browse/JDK-8065709?focusedCommentId=13582038&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13582038>
// See <https://bugs.openjdk.org/browse/JDK-8065709?focusedCommentId=13582038&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13582038>
// for more details.
Logger.getLogger("main").info("starting...");
try {

View File

@ -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);

View File

@ -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
*
*/

View File

@ -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
*/

View File

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

View File

@ -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() {

View File

@ -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.

View File

@ -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.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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");

View File

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

View File

@ -7,7 +7,7 @@ import java.util.*;
import java.util.concurrent.TimeUnit;
/**
* @see <a href="https://bugs.openjdk.java.net/browse/JDK-8274715">JDK-8274715</a>
* @see <a href="https://bugs.openjdk.org/browse/JDK-8274715">JDK-8274715</a>
*/
@Fork(value = 3)
@State(Scope.Thread)