[java] Updates to 7u40