mirror of
https://github.com/corda/corda.git
synced 2025-02-27 19:46:38 +00:00
use identity hash code in Object.toString()
This commit is contained in:
parent
84028e7f51
commit
57d57ff7bf
@ -16,10 +16,11 @@ replace(char a, char b, char* c)
|
||||
jstring
|
||||
Object_toString(Thread* t, jobject this_)
|
||||
{
|
||||
unsigned hash = objectHash(t, *this_);
|
||||
object s = makeString
|
||||
(t, "%s@%p",
|
||||
(t, "%s@0x%x",
|
||||
&byteArrayBody(t, className(t, objectClass(t, *this_)), 0),
|
||||
*this_);
|
||||
hash);
|
||||
|
||||
return pushReference(t, s);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user