src/windows/classes/sun/nio/fs/WindowsWatchService.java

Print this page

        

@@ -104,12 +104,15 @@
         private long overlappedAddress;
 
         // 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;
         }
 
         WindowsWatchKey init(long handle,
                              Set<? extends WatchEvent.Kind<?>> events,

@@ -403,11 +406,11 @@
                 }
 
                 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
                     fk2key.put(fk, watchKey);
                 } else {