Avoid aggressive merging during low memory mode
Modified issue890 test to compile java file into build directory