7194370: (fs) WatchService fails if volume S/N is 0 [win]
authordxu
Sun, 09 Dec 2012 19:13:08 +0000
changeset 14764 6dd2370b4cd3
parent 14763 c16fa130fa23
child 14765 0987999ed367
7194370: (fs) WatchService fails if volume S/N is 0 [win] Reviewed-by: alanb, forax
jdk/src/windows/classes/sun/nio/fs/WindowsFileAttributes.java
--- a/jdk/src/windows/classes/sun/nio/fs/WindowsFileAttributes.java	Sun Dec 09 07:43:12 2012 -0800
+++ b/jdk/src/windows/classes/sun/nio/fs/WindowsFileAttributes.java	Sun Dec 09 19:13:08 2012 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -383,20 +383,14 @@
     }
 
     int volSerialNumber() {
-        if (volSerialNumber == 0)
-            throw new AssertionError("Should not get here");
         return volSerialNumber;
     }
 
     int fileIndexHigh() {
-        if (volSerialNumber == 0)
-            throw new AssertionError("Should not get here");
         return fileIndexHigh;
     }
 
     int fileIndexLow() {
-        if (volSerialNumber == 0)
-            throw new AssertionError("Should not get here");
         return fileIndexLow;
     }