Skip to content

Commit

Permalink
vmplugin: missing class erorr
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Oct 25, 2023
1 parent 35c3943 commit fe8131c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.GenericSignatureFormatError;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.MalformedParameterizedTypeException;
import java.lang.reflect.Member;
Expand Down Expand Up @@ -437,9 +438,11 @@ public void configureClassNode(final CompileUnit compileUnit, final ClassNode cl
setAnnotationMetaData(clazz.getPackage().getAnnotations(), packageNode);
}
} catch (NoClassDefFoundError e) {
throw new NoClassDefFoundError("Unable to load class " + classNode.toString(false) + " due to missing dependency " + e.getMessage());
} catch (MalformedParameterizedTypeException e) {
throw new RuntimeException("Unable to configure class node for class " + classNode.toString(false) + " due to malformed parameterized types", e);
throw new NoClassDefFoundError("Unable to configure " + classNode.getName() + " due to missing dependency " + e.getMessage());
} catch (TypeNotPresentException e) {
throw new NoClassDefFoundError("Unable to configure " + classNode.getName() + " due to missing dependency " + e.typeName());
} catch (GenericSignatureFormatError | MalformedParameterizedTypeException e) {
throw new RuntimeException( "Unable to configure " + classNode.getName() + " due to malformed type info" , e);
}
}

Expand Down

0 comments on commit fe8131c

Please sign in to comment.