Added an exception to java compiler code