I'm trying to use j2objc to translate some Java code. Unfortunately, my code relies on reflection. The j2objc documentation claims that reflection is supported, but when I try to import e.g java.lang.reflect.Field
, I get an error message saying it cannot be resolved.
That's the same error I get if I try to import classes I know aren't supported, e.g. Swing.
Other classes that the documentation says is supported, e.g. java.util, do translate cleanly.
Is there something special which needs to be done to enable reflection support in j2objc?