Updated a large portion of the java core to 4.2