> The JDI `Type` and `Value` Javadocs incorrectly list `VoidType` and 
> `VoidValue` under "Subinterfaces of `PrimitiveType`" and "Subinterfaces of 
> `PrimitiveValue`", respectively.
> 
> However, `VoidType` and `VoidValue` directly extend `Type` and `Value`, not 
> `PrimitiveType` or `PrimitiveValue`. This is confirmed by the interface 
> declarations and by historical behavior (e.g., JDK-6431735, where casting 
> `VoidTypeImpl` to `PrimitiveTypeImpl` throws `ClassCastException`).
> 
> This fix:
> - Removes `VoidType` from the `PrimitiveType` subinterface table in 
> `Type.java`.
> - Removes `VoidValue` from the `PrimitiveValue` subinterface table in 
> `Value.java`.
> - Adds a short statement in both files clarifying that `VoidType`/`VoidValue` 
> directly extend `Type`/`Value`.
> - Updates the copyright headers.
> 
> Testing:
> - Doc-only change; no code behavior modified. Built the docs and verified the 
> updated Javadoc renders correctly.
> 
> 
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

xiaotaonan has updated the pull request incrementally with one additional 
commit since the last revision:

  fix: Modify according to the review comments.

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/34155/files
  - new: https://git.openjdk.org/jdk/pull/34155/files/27303bf9..e72665f7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=34155&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=34155&range=02-03

  Stats: 2 lines in 2 files changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/34155.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/34155/head:pull/34155

PR: https://git.openjdk.org/jdk/pull/34155

Reply via email to