Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scala.util.Properties.isMac returns incorrect values #7497

Closed
scabug opened this issue May 18, 2013 · 4 comments
Closed

scala.util.Properties.isMac returns incorrect values #7497

scabug opened this issue May 18, 2013 · 4 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented May 18, 2013

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

@scabug
Copy link
Author

scabug commented May 18, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7497?orig=1
Reporter: @soc
Affected Versions: 2.9.3, 2.10.1, 2.11.0-M2
Other Milestones: 2.11.0-M4

@scabug
Copy link
Author

scabug commented May 22, 2013

@adriaanm said:
2.9.4-RC1: scala/scala#2560

@scabug
Copy link
Author

scabug commented May 23, 2013

@JamesIry said:
Not a regression during 2.10.2 line so not a candidate for RC2

@scabug
Copy link
Author

scabug commented May 23, 2013

@adriaanm said:
scala/scala#2559

@scabug scabug closed this as completed May 23, 2013
@scabug scabug added this to the 2.10.3-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants