Chris Riccomini created SAMZA-358:
-------------------------------------

             Summary: check-all.sh improperly defaults to default JVM on OSX
                 Key: SAMZA-358
                 URL: https://issues.apache.org/jira/browse/SAMZA-358
             Project: Samza
          Issue Type: Bug
          Components: build
    Affects Versions: 0.8.0
            Reporter: Chris Riccomini
            Assignee: Chris Riccomini
             Fix For: 0.8.0


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:

{noformat}
$ /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
{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to