With JRuby 1.5 i’ve noticed that inspect() for java objects often is the
result of toString().
So for example the output of java.io.File.new("/path/to/file") is
“/path/to/file”, where it used to be “Java::JavaIo::File:0x7087e9bf”.
This is okay for most cases, but it gets really really weird if the
toString() returns an empty string. In my case that was a new File("")
which just didn’t produce any output with 1.5’s inspect() (it returned
“”, which is even less than “”.inspect).
I’m wondering what others say about this, I don’t want to say that the
new behavior is wrong.
Bisect “blames” the following commit:
Date: Sat Oct 24 16:59:27 2009 -0500
Improvements to JavaProxy-wrapped Java objects: * Lazily allocate the inner JavaObject, so if we don't use it we never create it. * Don't enter newly-constructed Objects into the proxy cache immediately.
To unsubscribe from this list, please visit: