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 (#883)
  • Loading branch information
theigl authored Feb 4, 2022
1 parent c3b16a6 commit e7170a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 e7170a1

Please sign in to comment.