test: throw intuitive error when built with Java 10 or older version
test: throw intuitive error when built with Java 10 or older version

spotbugs/spotbugs,spotbugs/spotbugs,spotbugs/spotbugs,spotbugs/spotbugs,spotbugs/spotbugs