changeset 6230:343615aa0539

7194370: (fs) WatchService fails if volume S/N is 0 [win] Reviewed-by: alanb, forax
author dxu
date Sun, 09 Dec 2012 19:13:08 +0000
parents da387f0cecb7
children fda257689786
files src/windows/classes/sun/nio/fs/WindowsFileAttributes.java
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/classes/sun/nio/fs/WindowsFileAttributes.java	Sun Dec 09 07:43:12 2012 -0800
+++ b/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;
     }