Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X c6f1a8151 -> 2f7d9ddcb


GROOVY-8439: @CompileStatic cannot compile generic class's static method


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/2f7d9ddc
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/2f7d9ddc
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/2f7d9ddc

Branch: refs/heads/GROOVY_2_4_X
Commit: 2f7d9ddcb87554ed8c158b1cd568483835367bf0
Parents: c6f1a81
Author: danielsun1106 <realblue...@hotmail.com>
Authored: Sat Mar 10 22:45:53 2018 +0800
Committer: danielsun1106 <realblue...@hotmail.com>
Committed: Sat Mar 10 22:45:53 2018 +0800

----------------------------------------------------------------------
 .../codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/2f7d9ddc/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java
----------------------------------------------------------------------
diff --git 
a/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java 
b/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java
index 734e618..26cec8d 100644
--- a/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java
+++ b/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java
@@ -2014,7 +2014,7 @@ public abstract class StaticTypeCheckingSupport {
 
         Map<String, GenericsType> map;
         if (mn.isStatic()) {
-            map = new HashMap<>();
+            map = new HashMap<String, GenericsType>();
         } else {
             map = getGenericsParameterMapOfThis(mn.getDeclaringClass());
         }

Reply via email to