On May 25, 9:28 pm, Dan Sadaka <[email protected]>
wrote:
> Greetings.
>
> I am trying to list all keys in a java.util.HashMap field.
>
> Instead of getting the field names, I get
> #<#<Class:0x2d47d74>:0x2c15208>
> #<#<Class:0x2d47d74>:0x2c151a4>
> #<#<Class:0x2d47d74>:0x2c150b4>
>
> (there are three keys in the hash)
>
Well p (or puts etc) end up calling to_s on objects, and you're
obviously getting Object's default to_s. Does rjb have some method to
convert java strings into ruby strings ?

Fred
> Any ideas?
>
> Thanks,
> Dan
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to