提交 b61bd0b9 编写于 作者: D dxu

7194370: (fs) WatchService fails if volume S/N is 0 [win]

Reviewed-by: alanb, forax
上级 998275e6
/*
* 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 @@ class WindowsFileAttributes
}
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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册