Forum: Ruby on Rails yajb - java-ruby bridge

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
8889b05b9f25f84e2e6f8e66b5441155?d=identicon&s=25 stewbawka (Guest)
on 2007-02-06 16:51
(Received via mailing list)
i was using rjb until some of the java libraries i was using started
misbehaving. now i'm giving yajb a shot which seems to behave the way
i expect it to and is a lot simpler to code. my problem:

i have a class that takes a constant, which is a member of the class,
so i have to do something like this to make it work:

const_accessor = jnew :SearchCriteria, "dfdfa", "dasf", 0
#we can access constants from class now
search = jnew :SearchCriteria, "FirstName", "Stuart",
#this works..

i tried this:
search = jnew :SearchCriteria, "FirstName",
"Stuart", :SearchCriteria.CRITERIA_EQUALS
doesn't work

any ideas how to make the above work without having to instantiate the
const_accessor ??
This topic is locked and can not be replied to.