Description
The bin/check-all.sh script that was just added as part of SAMZA-202 is supposed to use the proper JAVA_HOME for 1.6, 1.7, and 1.8 if they exist in OSX.
There is a bug in the script. If a specific version doesn't exist, the script will use the default JVM version, rather than failing:
$ /usr/libexec/java_home -v 1.7 Unable to find any JVMs matching version "1.7". /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home $ jdk_version=$(/usr/libexec/java_home -v 1.7) Unable to find any JVMs matching version "1.7". $ echo $jdk_version /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home