Your message dated Fri, 15 Apr 2016 19:38:07 +0000
with message-id <[email protected]>
and subject line Bug#820703: Removed package(s) from unstable
has caused the Debian Bug report #743481,
regarding openjdk-7-jre-headless: Polling on WatchEvent ENTRY_MODIFY is not 
working as expected when file was edited with e.G. kate
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
743481: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743481
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Version: 7u95-2.6.4-1+rm

Dear submitter,

as the package openjdk-7 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/820703

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to