Clarification needed in JVMS 4.7.20.1 for RuntimeVisibleTypeAnnotations

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P5
    • None
    • Affects Version/s: 25
    • Component/s: specification
    • None
    • Environment:

      JVMS 25.

    • vm
    • 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.

            Assignee:
            Dan Smith
            Reporter:
            Archie Cobbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: