#Custom Java Class Extensions

12 messages · Page 1 of 1 (latest)

analog timber
#

Hey all, more complex question again, I am looking to implement an interface from CC:T in KJS, I think it's possible using standard Rhino however as of yet all options I have tried return errors to do with failed to cast from NativeObject to IPeripheral, or no method found JavaAdaptor(class, object). Does anyone have any ideas what paths I should take?

heavy spireBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

analog timber
median willowBOT
#

Paste version of message.js from @analog timber

ebon wedge
#

the java class adapter is broken in lat's fork of rhino and has been since basically the start

#

the only part of it that still works is functional interfaces cause they use a slightly different system

#

basically you are screwed

analog timber
#

Thanks for the reply, I have started looking at patching (even if it's likely just for me) KJS's rhino engine to get JavaAdapter working again

ebon wedge
#

yeah i tried that once

#

basically everything related to it got ripped out

#

good luck though!

analog timber
#

thanks!