Hi,
I currently run into the problem that java.lang.reflection is not supported by every Java target (in my case currently codenameone for iOS, but also J2ME). As far as I understand from the generated sources, all descendants of HxObject already have reflection capabilities without dependencies to java.lang.reflection.
Now is it possible to generate Java code without a dependency to java.lang.reflection ?
If not, I was directed to javassist which does compile time reflection by patching the .class file. This seems to increase the performance of reflection on the Java side as well. Would it be enough to patch Runtime.hx and Types.hx to use javassist.tools.reflect instead of java.lang.reflect ?
Which class files in this case need to be patched with javassist ? - I am asking here, because I am not clear if we need the dependency to java.lang.reflection for the HxObjects or for native Java objects. I need at least Reflection for Haxe remoting to work.
thanks for any help.
cheers Adrian.