Added "Windows 7" detection for os.name system property.

This commit is contained in:
jfrijters 2009-03-26 13:57:51 +00:00
Родитель f00d50ed0f
Коммит f3290fa061
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -241,12 +241,17 @@ public class VMSystemProperties
}
break;
case 6:
// since there appears to be no managed way to differentiate between Client/Server, we report client names
switch(minor)
{
case 0:
osver = "6.0";
osname = "Windows Vista";
break;
case 1:
osver = "6.1";
osname = "Windows 7";
break;
}
break;
}