diff --git a/src/com/esotericsoftware/kryo/util/DefaultClassResolver.java b/src/com/esotericsoftware/kryo/util/DefaultClassResolver.java index 8451497a3..93bcfbd80 100644 --- a/src/com/esotericsoftware/kryo/util/DefaultClassResolver.java +++ b/src/com/esotericsoftware/kryo/util/DefaultClassResolver.java @@ -182,8 +182,8 @@ protected Registration readName (Input input) { // Fallback to Kryo's class loader. try { type = Class.forName(className, false, Kryo.class.getClassLoader()); - } catch (ClassNotFoundException ex2) { - throw new KryoException("Unable to find class: " + className, ex); + } catch (ClassNotFoundException ex3) { + throw new KryoException("Unable to find class: " + className, ex3); } } }