Add missing return
And that's why I need to write more unit tests...
This commit is contained in:
parent
5ccd68db27
commit
fc892a6384
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user