groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwagenleit...@apache.org
Subject groovy git commit: GROOVY-8324: Use default/Object style toString for indy arg logging (closes #604)
Date Sun, 15 Oct 2017 03:59:27 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 32bdaa56e -> 7e1da637a


GROOVY-8324: Use default/Object style toString for indy arg logging (closes #604)


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

Branch: refs/heads/master
Commit: 7e1da637a0c240521aa77c4d269c50f73fd4b97a
Parents: 32bdaa5
Author: Matt Whipple <mwhipple@brightcove.com>
Authored: Sat Sep 23 14:15:08 2017 -0400
Committer: John Wagenleitner <jwagenleitner@apache.org>
Committed: Sat Oct 14 20:53:42 2017 -0700

----------------------------------------------------------------------
 src/main/org/codehaus/groovy/vmplugin/v7/Selector.java | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/7e1da637/src/main/org/codehaus/groovy/vmplugin/v7/Selector.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/vmplugin/v7/Selector.java b/src/main/org/codehaus/groovy/vmplugin/v7/Selector.java
index f2bda52..94a79a7 100644
--- a/src/main/org/codehaus/groovy/vmplugin/v7/Selector.java
+++ b/src/main/org/codehaus/groovy/vmplugin/v7/Selector.java
@@ -499,7 +499,13 @@ public abstract class Selector {
                     "\n\t\tspreadCall: "+spreadCall+
                     "\n\t\twith "+arguments.length+" arguments";
                 for (int i=0; i<arguments.length; i++) {
-                    msg += "\n\t\t\targument["+i+"] = "+arguments[i];
+                    msg += "\n\t\t\targument["+i+"] = ";
+                    if (arguments[i] == null) {
+                        msg += "null";
+                    } else {
+                        msg += arguments[i].getClass().getName()+
+                            "@"+Integer.toHexString(System.identityHashCode(arguments[i]));
+                    }
                 }
                 LOG.info(msg);
             }


Mime
View raw message