After quite a long time, I’ve been looking at upgrading my application’s
JRuby support from somewhere on the order of 0.3.x (or thereabouts) up
to 1.1.1. One of the things my application does is generate classes on
the fly (using bcel), with a number of getters/setters for various
properties on the classes.
The java support in the earlier jruby automatically mapped these methods
so that instead of obj.setField(value) I could do obj.Field=value.
However, with 1.1.1 I get a “method not found” error. (similarly with
getters). I’ve tried to search the mailing list archives in regards to
getters/setters and get lots of references to Active Records and rails
and stuff… but nothing that directly addresses my need (I don’t need
any of that other stuff… I’m not writing web applications or anything
like that - simple data processing stuff with scripting support). This
works seemlessly with the bsh scripting engine, and as I said, it worked
fine with an older JRuby, but I’m at a loss as to where to begin to get
it working with the latest JRuby.
Any pointers to a solution appreciated.
To unsubscribe from this list, please visit: