example of error message when still using Java 1.6