jdk/src/windows/classes/sun/nio/fs/WindowsWatchService.java
changeset 8158 77d9c0f1c19f
parent 5506 202f599c92aa
child 9035 1255eb81cc2f
--- a/jdk/src/windows/classes/sun/nio/fs/WindowsWatchService.java	Thu Jan 13 22:21:58 2011 -0800
+++ b/jdk/src/windows/classes/sun/nio/fs/WindowsWatchService.java	Fri Jan 28 09:28:43 2011 +0000
@@ -106,8 +106,11 @@
         // completion key (used to map I/O completion to WatchKey)
         private int completionKey;
 
-        WindowsWatchKey(AbstractWatchService watcher, FileKey fileKey) {
-            super(watcher);
+        WindowsWatchKey(Path dir,
+                        AbstractWatchService watcher,
+                        FileKey fileKey)
+        {
+            super(dir, watcher);
             this.fileKey = fileKey;
         }
 
@@ -405,7 +408,7 @@
                 WindowsWatchKey watchKey;
                 if (existing == null) {
                     // not registered so create new watch key
-                    watchKey = new WindowsWatchKey(watcher, fk)
+                    watchKey = new WindowsWatchKey(dir, watcher, fk)
                         .init(handle, events, watchSubtree, buffer, countAddress,
                               overlappedAddress, completionKey);
                     // map file key to watch key