You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@liangzengle Wow, great job debugging the problem right down to the source! You're totally right, all types other than long use a full 4 bytes (in big endian order) in the constant pool table. So the top two bytes will be zero for a short.
Annotation's parameter which type is
short
, it's value inAnnotationInfo
is always0
.I beleive the
short
type value is handled incorrectly at return (short) cpReadUnsignedShort(reader.readUnsignedShort());And I tried
cpReadInt
instead ofcpReadUnsignedShort
, it works fine.The text was updated successfully, but these errors were encountered: