Skip to content

Commit

Permalink
#882 Catch LinkageError in addition to RTE when accessing fields vi…
Browse files Browse the repository at this point in the history
…a ASM
  • Loading branch information
theigl committed Feb 4, 2022
1 parent c3b16a6 commit 1097882
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -146,7 +146,7 @@ private void addField (Field field, boolean asm, ArrayList<CachedField> fields,
try {
if (access == null) access = FieldAccess.get(serializer.type);
accessIndex = ((FieldAccess)access).getIndex(field);
} catch (RuntimeException ex) {
} catch (RuntimeException | LinkageError ex) {
if (DEBUG) debug("kryo", "Unable to use ReflectASM.", ex);
}
}
Expand Down

0 comments on commit 1097882

Please sign in to comment.