Skip to content
Tom Ball edited this page Feb 5, 2014 · 6 revisions

How is garbage collection handled?

See Memory Management. We continue to refine generated code to improve how memory is managed, using Xcode's leak detection and profiling tools. We encourage projects using J2ObjC to also monitor performance and leak detection (as all iOS projects should), and to report any issues found.

How can the translated code size be reduced? What can speed up translation? =

See Dead Code Eliminator.

I'm having problems building with Xcode

See Debugging Build Problems.

How does j2objc handle imports inside of .java files?

j2objc uses the Eclipse JDT as its front-end, so all imports are read as any Java compiler would do. To specify where to find imported classes, use the same -classpath and -sourcepath options you would use with javac. When generating Objective-C files, external class references are gathered, and #import directives are added to either the generated header (.h) or implementation (.m) files as appropriate.

Why are some of the minimum and maximum values for numeric types different from the Java specification?

These values are different from what Java returns because they are outside what the Objective-C compiler will accept as valid. We instead use the minimum and maximum values defined in /usr/include/values.h.

We've Moved!

The J2ObjC wiki has moved to j2objc.org.

Clone this wiki locally