[armedbear-devel] Question about calling Java

Alessio Stalla alessiostalla at gmail.com
Thu Feb 4 15:19:04 UTC 2010


On Thu, Feb 4, 2010 at 3:49 PM, Ville Voutilainen
<ville.voutilainen at gmail.com> wrote:
> On 4 February 2010 16:39, Axel Rauschmayer <axel at rauschma.de> wrote:
>> Quick comment: The latest incarnation of the Java FFI API allows one to use strings whenever a class object or a method object is required:
>> (jnew "my.package.MyClass" arg) for new my.package.MyClass(arg)
>> (jcall "methodName" obj arg) for obj.methodName(arg)
>
> Does it allow both the "old" way and the stringified way?

Yes, it does. The stringified way is obviously slower, because it
looks up the method at runtime.

> If so, is there a patch somewhere that we can integrate?

It's already on trunk ;)

Ale




More information about the armedbear-devel mailing list