title: Java's "os.name" for Windows 10?
body: <p>In Java, we can see the property value of <code>os.name</code> to know the name of the underlying operating system: <code>System.getProperty("os.name")</code>.</p>
  
  <p>For each edition of Windows, it used to return always the exact name of the OS: <code>Windows XP</code> for XP, <code>Windows Vista</code> for Vista, <code>Windows 7</code> for Seven, <code>Windows 8.1</code> for 8.1, and so on...</p>
  
  <p>The problem is: I just updated my Windows 8.1 to Windows 10 using the released Microsoft updater, and it seems like this property still remains <code>Windows 8.1</code>:</p>
  
  <pre><code>public class OSTest {
    public static void main(String[] args) {
      System.out.println(System.getProperty("os.name"));
    }
  }
  </code></pre>
  
  <p>How can I create a workaround for this? And, does anyone know if this problem persists if installing a fresh Windows 10 copy - that is, this bug is caused by the Microsoft auto-updater -?</p>