From fe8131c46b24bdc1e14b716ed3e2b2d05771363b Mon Sep 17 00:00:00 2001 From: Eric Milles Date: Wed, 25 Oct 2023 15:46:39 -0500 Subject: [PATCH] vmplugin: missing class erorr --- src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java b/src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java index 9b5cc18440a..2e33c7099ff 100644 --- a/src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java +++ b/src/main/java/org/codehaus/groovy/vmplugin/v8/Java8.java @@ -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; @@ -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); } }