Skip to content

Commit 7e1da63

Browse files
Matt Whipplejwagenleitner
Matt Whipple
authored andcommitted
GROOVY-8324: Use default/Object style toString for indy arg logging (closes groovy#604)
1 parent 32bdaa5 commit 7e1da63

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/org/codehaus/groovy/vmplugin/v7/Selector.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,13 @@ public MethodSelector(MutableCallSite callSite, Class sender, String methodName,
499499
"\n\t\tspreadCall: "+spreadCall+
500500
"\n\t\twith "+arguments.length+" arguments";
501501
for (int i=0; i<arguments.length; i++) {
502-
msg += "\n\t\t\targument["+i+"] = "+arguments[i];
502+
msg += "\n\t\t\targument["+i+"] = ";
503+
if (arguments[i] == null) {
504+
msg += "null";
505+
} else {
506+
msg += arguments[i].getClass().getName()+
507+
"@"+Integer.toHexString(System.identityHashCode(arguments[i]));
508+
}
503509
}
504510
LOG.info(msg);
505511
}

0 commit comments

Comments
 (0)