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 2017/09/19 05:31:49 UTC

groovy git commit: GROOVY-8321: !instanceof treated incorrectly in type checker (disable incorrect reverse check for the time being)

Repository: groovy
Updated Branches:
  refs/heads/master 01c3539b3 -> 5f9a1e766


GROOVY-8321: !instanceof treated incorrectly in type checker (disable incorrect reverse check for the time being)


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

Branch: refs/heads/master
Commit: 5f9a1e76633d58a3ea74eb88bb14f57c8ed45e61
Parents: 01c3539
Author: paulk <pa...@asert.com.au>
Authored: Tue Sep 19 15:31:40 2017 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Tue Sep 19 15:31:40 2017 +1000

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/5f9a1e76/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java b/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
index 12ea2b5..d22e006 100644
--- a/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
+++ b/src/main/org/codehaus/groovy/transform/stc/StaticTypeCheckingVisitor.java
@@ -700,7 +700,7 @@ public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport {
                 }
 
 
-            } else if (op == KEYWORD_INSTANCEOF || op == COMPARE_NOT_INSTANCEOF) {
+            } else if (op == KEYWORD_INSTANCEOF /*|| op == COMPARE_NOT_INSTANCEOF*/) {
                 pushInstanceOfTypeInfo(leftExpression, rightExpression);
             }
             if (!isEmptyDeclaration) {