Java object inspection can be opaque when debugging. Expose field values by
default.
------------------------------------------------------------------------------------
Key: JRUBY-4619
URL: http://jira.codehaus.org/browse/JRUBY-4619
Project: JRuby
Issue Type: Improvement
Components: Java Integration
Reporter: Damian Steer
Fix For: JRuby 1.5
Attachments: java_inspect.rb
(Reported on IRC)
Java object inspect punts to toString. This often is very helpful, especially
for users familiar with ruby inspect:
{noformat}
irb(main):003:0> JObject.new(1,"hji")
=> jobj...@5fda87db
{noformat}
With the attached file:
{noformat}
irb(main):004:0> JObject.new(1,"hji")
=> #<JObject: @x = 1, @name = "hji">
{noformat}
It's a very quick hack, but might be useful.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email