groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject incubator-groovy git commit: GROOVY-7668: Better error-message for AST transformation when binary compatibility changes
Date Tue, 10 Nov 2015 22:20:14 GMT
Repository: incubator-groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 4c88790cd -> 22f5b23fb


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/22f5b23f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/22f5b23f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/22f5b23f

Branch: refs/heads/GROOVY_2_4_X
Commit: 22f5b23fbd25a5f91dd18d8f6f0e4ba4c49918db
Parents: 4c88790
Author: Søren Berg Glasius <soeren@glasius.dk>
Authored: Tue Nov 10 11:01:32 2015 +0100
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Tue Nov 10 23:20:00 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/22f5b23f/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 d629820..460e26e 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;
@@ -389,6 +390,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);
         }
     }
 


Mime
View raw message