Skip to content

Commit e481421

Browse files
committedOct 12, 2022
8295198: Update more openjdk.java.net => openjdk.org URLs
Reviewed-by: erikj
1 parent 1e2dea3 commit e481421

File tree

6 files changed

+14
-15
lines changed

6 files changed

+14
-15
lines changed
 

‎ASSEMBLY_EXCEPTION

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
OPENJDK ASSEMBLY EXCEPTION
33

44
The OpenJDK source code made available by Oracle America, Inc. (Oracle) at
5-
openjdk.java.net ("OpenJDK Code") is distributed under the terms of the GNU
6-
General Public License <http://www.gnu.org/copyleft/gpl.html> version 2
5+
openjdk.org ("OpenJDK Code") is distributed under the terms of the GNU
6+
General Public License <https://www.gnu.org/copyleft/gpl.html> version 2
77
only ("GPL2"), with the following clarification and special exception.
88

99
Linking this OpenJDK Code statically or dynamically with other code
@@ -12,7 +12,7 @@ only ("GPL2"), with the following clarification and special exception.
1212

1313
As a special exception, Oracle gives you permission to link this
1414
OpenJDK Code with certain code licensed by Oracle as indicated at
15-
http://openjdk.java.net/legal/exception-modules-2007-05-08.html
15+
https://openjdk.org/legal/exception-modules-2007-05-08.html
1616
("Designated Exception Modules") to produce an executable,
1717
regardless of the license terms of the Designated Exception Modules,
1818
and to copy and distribute the resulting executable under GPL2,

‎CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Contributing to the JDK
22

3-
Please see <https://openjdk.java.net/contribute/> for how to contribute.
3+
Please see <https://openjdk.org/contribute> for how to contribute.

‎doc/hotspot-unit-tests.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ <h3 id="error-messages">Error messages</h3>
115115
<p>However in some cases, default information is not enough, a commonly used example is an assert inside a loop, GoogleTest will not print iteration values (unless it is an assert's parameter). Other demonstrative examples are printing error code and a corresponding error message; printing internal states which might have an impact on results. One should add this information to assert message using <code>&lt;&lt;</code> operator.</p>
116116
<h3 id="uncluttered-output">Uncluttered output</h3>
117117
<p>Print information only if it is needed.</p>
118-
<p>Too verbose tests which print all information even if they pass are very bad practice. They just pollute output, so it becomes harder to find useful information. In order not print information till it is really needed, one should consider saving it to a temporary buffer and pass to an assert. <a href="https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp" class="uri">https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp</a> has a good example how to do that.</p>
118+
<p>Too verbose tests which print all information even if they pass are very bad practice. They just pollute output, so it becomes harder to find useful information. In order not print information till it is really needed, one should consider saving it to a temporary buffer and pass to an assert. <a href="https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp" class="uri">https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp</a> has a good example how to do that.</p>
119119
<h3 id="failures-propagation">Failures propagation</h3>
120120
<p>Wrap a subroutine call into <code>EXPECT_NO_FATAL_FAILURE</code> macro to propagate failures.</p>
121121
<p><code>ASSERT</code> and <code>FAIL</code> abort only the current function, so if you have them in a subroutine, a test will not be aborted after the subroutine even if <code>ASSERT</code> or <code>FAIL</code> fails. You should call such subroutines in <code>ASSERT_NO_FATAL_FAILURE</code> macro to propagate fatal failures and abort a test. <code>(EXPECT|ASSERT)_NO_FATAL_FAILURE</code> can also be used to provide more information.</p>
@@ -171,7 +171,7 @@ <h3 id="external-flags">External flags</h3>
171171
<h3 id="test-specific-flags">Test-specific flags</h3>
172172
<p>Passing flags to a tested JVM in <code>TEST_OTHER_VM</code> and <code>TEST_VM_ASSERT*</code> should be possible, but is not implemented yet.</p>
173173
<p>Facility to pass test-specific flags is needed for system, regression or other types of tests which require a fully initialized JVM in some particular configuration, e.g. with Serial GC selected. There is no support for such tests now, however, there is a plan to add that in upcoming releases.</p>
174-
<p>For now, if a test depends on flags values, it should have <code>if (!&lt;flag&gt;) { return }</code> guards in the very beginning and <code>@requires</code> comment similar to jtreg <code>@requires</code> directive right before test macros. <a href="https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp" class="uri">https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp</a> ha an example of this temporary workaround. It is important to follow that pattern as it allows us to easily find all such tests and update them as soon as there is an implementation of flag passing facility.</p>
174+
<p>For now, if a test depends on flags values, it should have <code>if (!&lt;flag&gt;) { return }</code> guards in the very beginning and <code>@requires</code> comment similar to jtreg <code>@requires</code> directive right before test macros. <a href="https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp" class="uri">https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp</a> ha an example of this temporary workaround. It is important to follow that pattern as it allows us to easily find all such tests and update them as soon as there is an implementation of flag passing facility.</p>
175175
<p>In long-term, we expect jtreg to support GoogleTest tests as first class citizens, that is to say, jtreg will parse <span class="citation" data-cites="requires">@requires</span> comments and filter out inapplicable tests.</p>
176176
<h3 id="flag-restoring">Flag restoring</h3>
177177
<p>Restore changed flags.</p>

‎doc/hotspot-unit-tests.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ very bad practice. They just pollute output, so it becomes harder to
194194
find useful information. In order not print information till it is
195195
really needed, one should consider saving it to a temporary buffer and
196196
pass to an assert.
197-
<https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp>
197+
<https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/shared/test_memset_with_concurrent_readers.cpp>
198198
has a good example how to do that.
199199

200200
### Failures propagation
@@ -383,7 +383,7 @@ upcoming releases.
383383
For now, if a test depends on flags values, it should have `if
384384
(!<flag>) { return }` guards in the very beginning and `@requires`
385385
comment similar to jtreg `@requires` directive right before test macros.
386-
<https://hg.openjdk.java.net/jdk/jdk/file/tip/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp>
386+
<https://git.openjdk.org/jdk/blob/master/test/hotspot/gtest/gc/g1/test_g1IHOPControl.cpp>
387387
ha an example of this temporary workaround. It is important to follow
388388
that pattern as it allows us to easily find all such tests and update
389389
them as soon as there is an implementation of flag passing facility.

‎make/common/ProcessMarkdown.gmk

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ define ProcessMarkdown
5757
endif
5858

5959
ifneq ($$($1_CSS), )
60-
ifneq ($$(findstring http:/, $$($1_CSS)), )
60+
ifneq ($$(findstring https:/, $$($1_CSS)), )
6161
$1_$2_CSS_OPTION := --css '$$($1_CSS)'
6262
else
6363
$1_$2_CSS := $$(strip $$(call RelativePath, $$($1_CSS), $$($1_$2_TARGET_DIR)))

‎src/java.base/share/man/java.1

+5-6
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ It is an error if there is a class on the application class path whose
300300
name is the same as that of the class to be executed.
301301
.PP
302302
See \f[B]JEP 330: Launch Single\-File Source\-Code Programs\f[R]
303-
[http://openjdk.java.net/jeps/330] for complete details.
303+
[https://openjdk.org/jeps/330] for complete details.
304304
.SH USING THE JDK_JAVA_OPTIONS LAUNCHER ENVIRONMENT VARIABLE
305305
.PP
306306
\f[CB]JDK_JAVA_OPTIONS\f[R] prepends its content to the options parsed
@@ -4111,11 +4111,10 @@ warning is issued when they\[aq]re used.
41114111
.TP
41124112
.B \f[CB]\-\-illegal\-access=\f[R]\f[I]parameter\f[R]
41134113
Controlled \f[I]relaxed strong encapsulation\f[R], as defined in \f[B]JEP
4114-
261\f[R]
4115-
[https://openjdk.java.net/jeps/261#Relaxed\-strong\-encapsulation].
4114+
261\f[R] [https://openjdk.org/jeps/261#Relaxed\-strong\-encapsulation].
41164115
This option was deprecated in JDK 16 by \f[B]JEP 396\f[R]
4117-
[https://openjdk.java.net/jeps/396] and made obsolete in JDK 17 by
4118-
\f[B]JEP 403\f[R] [https://openjdk.java.net/jeps/403].
4116+
[https://openjdk.org/jeps/396] and made obsolete in JDK 17 by \f[B]JEP
4117+
403\f[R] [https://openjdk.org/jeps/403].
41194118
.RS
41204119
.RE
41214120
.TP
@@ -4392,7 +4391,7 @@ start the VM with the command line option:
43924391
.RE
43934392
.PP
43944393
See \f[B]CodeHeap State Analytics (OpenJDK)\f[R]
4395-
[https://bugs.openjdk.java.net/secure/attachment/75649/JVM_CodeHeap_StateAnalytics_V2.pdf]
4394+
[https://bugs.openjdk.org/secure/attachment/75649/JVM_CodeHeap_StateAnalytics_V2.pdf]
43964395
for a detailed description of the code heap state analytics feature, the
43974396
supported functions, and the granularity options.
43984397
.SH ENABLE LOGGING WITH THE JVM UNIFIED LOGGING FRAMEWORK

0 commit comments

Comments
 (0)