Scala Programming Language
  1. Scala Programming Language
  2. SI-7497

scala.util.Properties.isMac returns incorrect values

    Details

      Description

      scala.util.Properties.isMac returns incorrect values because it checks for the java.vendor property. This stopped working pretty much since Oracle ships its own version of Java for Mac (and one can compile OpenJDK for it).

      Obviously and according to a TechNote, os.name should be used to detect a Mac OSX operating system.

      ¹ https://developer.apple.com/library/mac/#technotes/tn2002/tn2110.html

        Activity

        Hide
        Adriaan Moors added a comment -
        Show
        Adriaan Moors added a comment - 2.9.4-RC1: https://github.com/scala/scala/pull/2560
        Hide
        James Iry added a comment -

        Not a regression during 2.10.2 line so not a candidate for RC2

        Show
        James Iry added a comment - Not a regression during 2.10.2 line so not a candidate for RC2
        Show
        Adriaan Moors added a comment - https://github.com/scala/scala/pull/2559

          People

          • Assignee:
            Simon Ochsenreither
            Reporter:
            Simon Ochsenreither
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development