-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P5
-
None
-
Affects Version/s: 25
-
Component/s: specification
-
None
-
Environment:
JVMS 25.
-
generic
-
generic
In JVMS §4.7.20.1 describing "type_argument_target" is says:
"The value of the offset item specifies the code array offset of either the bytecode instruction corresponding to the cast expression, or..."
In the case of an intersection cast, this is ambiguous, because "the cast expression" means the entire expression including all the types, whereas presumably what's intended here is that the offset refers to the specific bytecode instruction associated with the specific type indicated by "type_argument_index".
Suggestion: Change this wording to something like "The value of the offset item specifies the code array offset of either the bytecode instruction corresponding to the cast to the type indicated by "type_argument_index" in the cast, or...", etc.
"The value of the offset item specifies the code array offset of either the bytecode instruction corresponding to the cast expression, or..."
In the case of an intersection cast, this is ambiguous, because "the cast expression" means the entire expression including all the types, whereas presumably what's intended here is that the offset refers to the specific bytecode instruction associated with the specific type indicated by "type_argument_index".
Suggestion: Change this wording to something like "The value of the offset item specifies the code array offset of either the bytecode instruction corresponding to the cast to the type indicated by "type_argument_index" in the cast, or...", etc.
- relates to
-
JDK-8371733 Incorrect RuntimeVisibleTypeAnnotation generated for intersection cast
-
- Open
-