Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-358

check-all.sh improperly defaults to default JVM on OSX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 0.8.0
    • 0.8.0
    • build
    • None

    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
      

      Attachments

        Activity

          People

            criccomini Chris Riccomini
            criccomini Chris Riccomini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: