Add missing return

And that's why I need to write more unit tests...
This commit is contained in:
Mark Vainomaa 2016-12-16 17:42:57 +02:00
parent 5ccd68db27
commit fc892a6384

View File

@ -178,7 +178,7 @@ public class Reflect {
String.class, byte[].class, int.class, int.class); String.class, byte[].class, int.class, int.class);
if(defineClassMethod != null){ if(defineClassMethod != null){
try { try {
defineClassMethod.invoke(classLoader, name, data, 0, data.length); return (Class<?>) defineClassMethod.invoke(classLoader, name, data, 0, data.length);
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
if(e.getTargetException() instanceof ClassFormatError){ if(e.getTargetException() instanceof ClassFormatError){
throw (ClassFormatError)e.getTargetException(); throw (ClassFormatError)e.getTargetException();