We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3ce336 commit 1166375Copy full SHA for 1166375
drjava/src/edu/rice/cs/drjava/platform/PlatformFactory.java
@@ -46,8 +46,10 @@ private static PlatformSupport getPlatformSupport() {
46
47
// Get OS name string; we expect one of "windows xp", "mac os x", etc.
48
String os = System.getProperty("os.name").toLowerCase();
49
+ String java_version = System.getProperty("java.version").toLowerCase();
50
- if (os.startsWith("mac os x")) return MacPlatform.ONLY;
51
+ if (os.startsWith("mac os x") && java_version.startsWith("1.")) return MacPlatform.ONLY;
52
+ else if (os.startsWith("mac os x")) return MacPlatform.ONLY;
53
else if (os.startsWith("windows")) return WindowsPlatform.ONLY;
54
else return DefaultPlatform.ONLY;
55
}
0 commit comments