Commit 26063d96 authored by Eric Bruneton's avatar Eric Bruneton

Fix bug related to annotation parsing, make previously added test pass.

parent 0966971f
Pipeline #1033 passed with stage
in 6 minutes and 9 seconds
......@@ -2351,7 +2351,7 @@ public class ClassReader {
// Visit the local variable type annotations of the RuntimeInvisibleTypeAnnotations attribute.
if (invisibleTypeAnnotationOffsets != null) {
for (int i = 0; i < invisibleTypeAnnotationOffsets.length; ++i) {
int targetType = readByte(visibleTypeAnnotationOffsets[i]);
int targetType = readByte(invisibleTypeAnnotationOffsets[i]);
if (targetType == TypeReference.LOCAL_VARIABLE
|| targetType == TypeReference.RESOURCE_VARIABLE) {
// Parse the target_type, target_info and target_path fields.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment