Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8345319

Fix the tag type in PoolEntry and AnnotationValue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 24
    • 24
    • core-libs
    • None

      The return type for `tag` in PoolEntry and AnnotationValue are `byte` and `char` respectively, which does not match the constant types. And the `byte` for PoolEntry will be erroneously negative if the tag value goes beyond 127 (it is allowed to be an unsigned int).
      This also brings consistency with other discriminator values, such as `StackMapFrameInfo::frameType`, `TypeAnnotation.TargetType::targetTypeValue`.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: