8343071: Broken anchors to restricted method page and some redundant ids

8332747: Broken links in StructuredTaskScope

Reviewed-by: mcimadamore, iris
This commit is contained in:
Nizar Benalla 2024-11-05 21:43:11 +00:00
parent d4d9831c90
commit 69bc088774
4 changed files with 7 additions and 7 deletions
src/java.base/share/classes/java

@ -151,7 +151,7 @@ import sun.reflect.misc.ReflectUtil;
* <p> Some methods of class {@code Class} expose whether the declaration of
* a class or interface in Java source code was <em>enclosed</em> within
* another declaration. Other methods describe how a class or interface
* is situated in a <dfn>{@index "nest"}</dfn>. A <a id="nest">nest</a> is a set of
* is situated in a <dfn>{@index "nest"}</dfn>. A nest is a set of
* classes and interfaces, in the same run-time package, that
* allow mutual access to their {@code private} members.
* The classes and interfaces are known as <dfn>{@index "nestmates"}</dfn>

@ -263,7 +263,7 @@ public final class Module implements AnnotatedElement {
/**
* Returns {@code true} if this module can access
* <a href="foreign/package-summary.html#restricted"><em>restricted</em></a> methods.
* <a href="{@docRoot}/java.base/java/lang/doc-files/RestrictedMethods.html#restricted"><em>restricted</em></a> methods.
*
* @return {@code true} if this module can access <em>restricted</em> methods.
* @since 22

@ -501,7 +501,7 @@ import jdk.internal.vm.annotation.ForceInline;
* All the methods that can be used to manipulate zero-length memory segments
* ({@link #reinterpret(long)}, {@link #reinterpret(Arena, Consumer)}, {@link #reinterpret(long, Arena, Consumer)} and
* {@link AddressLayout#withTargetLayout(MemoryLayout)}) are
* <a href="package-summary.html#restricted"><em>restricted</em></a> methods, and should
* <a href="{@docRoot}/java.base/java/lang/doc-files/RestrictedMethods.html#restricted"><em>restricted</em></a> methods, and should
* be used with caution: assigning a segment incorrect spatial and/or temporal bounds
* could result in a VM crash when attempting to access the memory segment.
*

@ -1007,9 +1007,9 @@ public class StructuredTaskScope<T> implements AutoCloseable {
*
* <p> Construction captures the current thread's {@linkplain ScopedValue scoped
* value} bindings for inheritance by threads started in the task scope. The
* <a href="#TreeStructure">Tree Structure</a> section in the class description
* details how parent-child relations are established implicitly for the purpose
* of inheritance of scoped value bindings.
* {@linkplain StructuredTaskScope##TreeStructure Tree Structure} section
* in the class description details how parent-child relations are established
* implicitly for the purpose of inheritance of scoped value bindings.
*
* @param name the name of the task scope, can be null
* @param factory the thread factory
@ -1187,7 +1187,7 @@ public class StructuredTaskScope<T> implements AutoCloseable {
*
* <p> Construction captures the current thread's {@linkplain ScopedValue scoped
* value} bindings for inheritance by threads started in the task scope. The
* <a href="#TreeStructure">Tree Structure</a> section in the class description
* {@linkplain StructuredTaskScope##TreeStructure Tree Structure} section in the class description
* details how parent-child relations are established implicitly for the purpose
* of inheritance of scoped value bindings.
*