You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2015/11/10 23:19:45 UTC
incubator-groovy git commit: GROOVY-7668: Better error-message for
AST transformation when binary compatibility changes
Repository: incubator-groovy
Updated Branches:
refs/heads/master afc68839d -> 3b85e8610
GROOVY-7668: Better error-message for AST transformation when binary compatibility changes
Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/3b85e861
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/3b85e861
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/3b85e861
Branch: refs/heads/master
Commit: 3b85e8610fa2976dc4430f1930e6a1369a69d016
Parents: afc6883
Author: Søren Berg Glasius <so...@glasius.dk>
Authored: Tue Nov 10 11:01:32 2015 +0100
Committer: pascalschumacher <pa...@gmx.net>
Committed: Tue Nov 10 23:18:22 2015 +0100
----------------------------------------------------------------------
src/main/org/codehaus/groovy/vmplugin/v5/Java5.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/3b85e861/src/main/org/codehaus/groovy/vmplugin/v5/Java5.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/vmplugin/v5/Java5.java b/src/main/org/codehaus/groovy/vmplugin/v5/Java5.java
index 54252b5..3f7446f 100644
--- a/src/main/org/codehaus/groovy/vmplugin/v5/Java5.java
+++ b/src/main/org/codehaus/groovy/vmplugin/v5/Java5.java
@@ -47,6 +47,7 @@ import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.MalformedParameterizedTypeException;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
@@ -388,6 +389,8 @@ public class Java5 implements VMPlugin {
}
} 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);
}
}