Forum: JRuby Slighly unexpected behavior setting java member variables

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.
F48118fe74b0c7f6fd82a0ee422fa34e?d=identicon&s=25 snacktime (Guest)
on 2013-07-02 03:42
(Received via mailing list)
I'm thinking that jruby handling this the 'expected' way might be a
performance issue, which might be why it works the way it does.

You can get  java member variables using underscored names, but you
cannot
set them using underscores, you have to call the real camelized member
variable name or you get something like this:

undefined method `my_member_variable='

Chris
This topic is locked and can not be replied to.