ADDITIONAL SYSTEM INFORMATION :
Not relevant, problem observable directly in documentation.
A DESCRIPTION OF THE PROBLEM :
In
https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jdi/com/sun/jdi/Type.html,
subinterfaces of PrimitiveType are listed. VoidType is included in this list. However, looking at the definition of VoidType, it only has the superinterfaces Mirror and Type.
https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jdi/com/sun/jdi/Type.html
This causes a check in Java for PrimitiveType to not include VoidType at all. It is unknown whether this is a documentational error or if VoidType is truly supposed to be a subinterface of PrimitiveType.
I suspect that this is an error in the code, and that VoidType should have the superinterface of PrimitiveType.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
You don't need to reproduce this as it is observable in documentation. But you can run a type check on VoidType whether it is PrimitiveType. This check should pass according to documentation at https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jdi/com/sun/jdi/Type.html.
---------- BEGIN SOURCE ----------
-
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
-
FREQUENCY :
ALWAYS
Not relevant, problem observable directly in documentation.
A DESCRIPTION OF THE PROBLEM :
In
https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jdi/com/sun/jdi/Type.html,
subinterfaces of PrimitiveType are listed. VoidType is included in this list. However, looking at the definition of VoidType, it only has the superinterfaces Mirror and Type.
https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jdi/com/sun/jdi/Type.html
This causes a check in Java for PrimitiveType to not include VoidType at all. It is unknown whether this is a documentational error or if VoidType is truly supposed to be a subinterface of PrimitiveType.
I suspect that this is an error in the code, and that VoidType should have the superinterface of PrimitiveType.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
You don't need to reproduce this as it is observable in documentation. But you can run a type check on VoidType whether it is PrimitiveType. This check should pass according to documentation at https://docs.oracle.com/en/java/javase/25/docs/api/jdk.jdi/com/sun/jdi/Type.html.
---------- BEGIN SOURCE ----------
-
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
-
FREQUENCY :
ALWAYS