(refs #518)Compile for Java7