When a build was declared as
language: java and
jdk: oraclejdk7 or
jdk: oraclejdk10 the build should be marked as “skipped” or something similar.
For example this build shows the error. on the other hand this Pull request fixes this issue using the ‘jobs’ feature. I think this option might not last for long because Oracle announced that when they release a new version of the JDK, they deprecate the one-before-the-previous STS release.
In my opinion, not failing is disservice to the users, who need to take action to remove these unsupported configurations.