From e7170a1da8de84dfc5214a7d20029e33d10b3e8a Mon Sep 17 00:00:00 2001 From: Thomas Heigl Date: Fri, 4 Feb 2022 11:50:04 +0100 Subject: [PATCH] #882 Catch `LinkageError` in addition to RTE when accessing fields via ASM (#883) --- src/com/esotericsoftware/kryo/serializers/CachedFields.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/esotericsoftware/kryo/serializers/CachedFields.java b/src/com/esotericsoftware/kryo/serializers/CachedFields.java index 59ed00943..5e2d43af8 100644 --- a/src/com/esotericsoftware/kryo/serializers/CachedFields.java +++ b/src/com/esotericsoftware/kryo/serializers/CachedFields.java @@ -146,7 +146,7 @@ private void addField (Field field, boolean asm, ArrayList 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); } }