Package: openjdk-7-jre-headless Version: 7u51-2.4.5-2 Severity: normal Tags: upstream
Here a simple example program, that demonstrates and reproduces the behaviour: package fileevent; import static java.nio.file.StandardWatchEventKinds.*; import java.nio.file.*; public class Testcase { public static void main(String[] args) { try { Path dir = Paths.get(args[0]); FileSystem fs = dir.getFileSystem(); WatchService watchService = fs.newWatchService(); WatchKey watchKey = dir.register(watchService, ENTRY_MODIFY); for (;;) { for (WatchEvent<?> event : watchKey.pollEvents()) { WatchEvent.Kind<?> kind = event.kind(); if (kind == ENTRY_MODIFY) { @SuppressWarnings("unchecked") WatchEvent<Path> ev = (WatchEvent<Path>)event; Path file = ev.context(); System.out.println("File- Changed: "+file); } } Thread.sleep(100); } } catch (Exception e) { e.printStackTrace(); } } } Watching directory /var/tmp/test: java -cp ... fileevent.Testcase /var/tmp/test Then editing and saving a File /var/tmp/test/aFile with vi results in following output: File-Changed: .aFile.swp File-Changed: .aFile.swp File-Changed: .aFile.swp File-Changed: 4913 File-Changed: aFile File-Changed: .aFile.swp When editing and saving the same file with kate: File-Changed: .aFile.kate-swp File-Changed: .aFile.kate-swp File-Changed: .aFile.kate-swp File-Changed: aFilep12134.new Problem, when editing with kate the file aFile is never shown instead only aFilep12134.new is shown. I am not sure whether this is a problem of the upstream provider (Oracle) or if this is due to some other bug. I've also checked it with jdk 1.8.0 GA with the same result. I Hope someone can help me with this. If you need more infos, just let me know. -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages openjdk-7-jre-headless depends on: ii ca-certificates-java 20140324 ii java-common 0.51 ii libc6 2.18-4 ii libcups2 1.7.1-10 ii libfontconfig1 2.11.0-2 ii libfreetype6 2.5.2-1 ii libgcc1 1:4.8.2-16 ii libglib2.0-0 2.38.2-5 ii libjpeg8 8d-2 ii libkrb5-3 1.12.1+dfsg-1 ii liblcms2-2 2.5-1 ii libnss3 2:3.16-1 ii libpcsclite1 1.8.11-1 ii libstdc++6 4.8.2-16 ii multiarch-support 2.18-4 ii tzdata-java 2014a-1 ii zlib1g 1:1.2.8.dfsg-1 Versions of packages openjdk-7-jre-headless recommends: ii icedtea-7-jre-jamvm 7u51-2.4.5-2 Versions of packages openjdk-7-jre-headless suggests: ii fonts-dejavu-extra 2.34-1 ii fonts-ipafont-gothic 00303-12 ii fonts-ipafont-mincho 00303-12 ii fonts-wqy-microhei [ttf-wqy-microhei] 0.2.0-beta-2 ii libnss-mdns 0.10-6 pn sun-java6-fonts <none> ii ttf-indic-fonts 2:1.1 ii ttf-wqy-microhei 0.2.0-beta-2 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org