title: Why does my Eclipse Helios debugging hand when stepping over Path.register(WatchService, Kind<?>...)?
body: <p>I have code like this in a Junit 4 class:</p>
  
  <pre><code>Path dir = Paths.get("/tmp/testDir");
  dir.toFile().mkdir();
  WatchService watchService = FileSystems.getDefault().newWatchService();
  dir.register(watchService, StandardWatchEventKinds.ENTRY_CREATE,
      StandardWatchEventKinds.ENTRY_DELETE);
  </code></pre>
  
  <p>When I try to step over the last statement in the Eclipse Helios debugging perspective, the relevant thread indicates that it's "Stepping" and never returns. Why?</p>
  
  <p>The same behavior (hanging on the Path.register() call) apparently also occurs when I try the Maven command "mvn test" to execute the Junit class (at least that hypothesis is consistent with the failure of the class that I see).</p>
  
  <p>Here's my JVM:</p>
  
  <pre><code>$ $JAVA_HOME/bin/java -version
  java version "1.7.0_02"
  Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
  Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
  </code></pre>