We'd like to add warnings for incorrect `{@link}/{@linkplain}` tags that refer to private/protected types.
In order to do that we need to remove incorrect uses of these tags from the JDK documentation.
After adding the new warning, we see the following warning when building the JDK docs:
```
src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Vector.java:163: warning: reference to non-visible type: VectorShape.largestShapeFor(Class) (use -protected or -private options to document non-public types)
* {@linkplain VectorShape#largestShapeFor(Class) largest
^
```
In order to do that we need to remove incorrect uses of these tags from the JDK documentation.
After adding the new warning, we see the following warning when building the JDK docs:
```
src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Vector.java:163: warning: reference to non-visible type: VectorShape.largestShapeFor(Class) (use -protected or -private options to document non-public types)
* {@linkplain VectorShape#largestShapeFor(Class) largest
^
```
- causes
-
JDK-8358217 jdk/incubator/vector/PreferredSpeciesTest.java#id0 failures - expected [128] but found [256]
-
- Resolved
-
- csr for
-
JDK-8358009 VectorShape#largestShapeFor should have public access
-
- Closed
-
- relates to
-
JDK-8358215 ProblemList jdk/incubator/vector/PreferredSpeciesTest.java
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/09301c1d
-
Review(master) openjdk/jdk/25513