Added support for compiling fields in the java stub compiler.