Skip to content

Commit

Permalink
GROOVY-8324: Use default/Object style toString for indy arg logging (c…
Browse files Browse the repository at this point in the history
…loses groovy#604)
  • Loading branch information
Matt Whipple authored and jwagenleitner committed Oct 15, 2017
1 parent 32bdaa5 commit 7e1da63
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/org/codehaus/groovy/vmplugin/v7/Selector.java
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,13 @@ public MethodSelector(MutableCallSite callSite, Class sender, String methodName,
"\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);
}
Expand Down

0 comments on commit 7e1da63

Please sign in to comment.