Originally published at
simes dot org. You can comment here or
there.
After a helpful response from
Charles to my last post on the subject, I pulled the 0.9.3 JRuby build and ran my test against it. On the way I ran into a few other things and tidied up a few more as a result.
Firstly, the jars are now in the jre/lib/ext folder of my Notes client install, rather than putting them in another folder and adding them to JavaUserClasses.
Secondly, something about the new build causes a SecurityException to fire when running the test code again. I’m guessing it’s something to do with the new bytecode manipulation stuff in JRuby, but I don’t know for certain. Granting
permission java.lang.reflect.ReflectPermission "suppressAccessChecks", "true";
sorts that out.
And so, we run the test code again. A substantial improvement, knocking the run time down to about 6 seconds - still not really usable as such, but certainly better than before. It might be worth looking into a more real-world sort of test, one which actually opens real documents from real views and manipulates them. I shall also, as requested, be posting the details to the JRuby mailing list to see if anyone there can help.