The automatic Java Bean conveniences actually make scripting in renjin unintuitive at first (for a Java developer), and even make some operations impossible (as far as I can tell).
I still get an EvalException, for "no member named class".
In other cases the automatic Bean parsing worked great. But given this, it seems like Renjin is over-aggressive in stripping away accessors.
Also, I suggest preserving both accessor and direct field members to the External_Ptrs - so code from Java will work regardless of which it was written to use.
The automatic Java Bean conveniences actually make scripting in renjin unintuitive at first (for a Java developer), and even make some operations impossible (as far as I can tell).
For example, running the script:
Causes:
org.renjin.eval.EvalException: Instance of class java.util.HashMap has no member named 'getClass'
Which would be manageable, except if I try to avoid using the accessor:
I still get an
EvalException
, for "no member named class".In other cases the automatic Bean parsing worked great. But given this, it seems like Renjin is over-aggressive in stripping away accessors.
Also, I suggest preserving both accessor and direct field members to the External_Ptrs - so code from Java will work regardless of which it was written to use.