groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: GROOVY-8321: !instanceof treated incorrectly in type checker (disable incorrect reverse check for the time being)
Date Sat, 30 Sep 2017 01:41:36 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 5a1d91456 -> 27396086a


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

Branch: refs/heads/GROOVY_2_6_X
Commit: 27396086a71ed2e263d5720e5c3f975b5b323005
Parents: 5a1d914
Author: paulk <paulk@asert.com.au>
Authored: Tue Sep 19 15:31:40 2017 +1000
Committer: paulk <paulk@asert.com.au>
Committed: Sat Sep 30 11:41:21 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/27396086/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 1eed9fc..3baeaeb 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) {


Mime
View raw message