AVRO-1489. Java: Avro fails to build with OpenJDK 8. Contributed by Ricardo Arguello.

git-svn-id: https://svn.apache.org/repos/asf/avro/trunk@1634542 13f79535-47bb-0310-9956-ffa450edef68