Forum: JRuby Removing entries from a Java Hashtable does not work

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Guillermo A. (Guest)
on 2009-01-04 00:33
(Received via mailing list)
Hello G.s,

I have a sentence in ruby like this one:

java_hashtable.remove code

But the code is not removed from the hashtable. Is it a jaby bug or am
I doing something wrong?

Thanks,

GA


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Marcin M. (Guest)
on 2009-01-04 00:55
(Received via mailing list)
works perfectly for me:

include Java

h = java.util.Hashtable.new
h[1] = 2
h[3] = 4
p h.remove 1

p h.size
p h[1]
p h[2]


Marcin.

Guillermo A. pisze:
>
> GA
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
This topic is locked and can not be replied to.