Debian Bug report logs - #679036
openjdk-7-jre: Prints "MEvent. CASE!" to the console on certain mouse events

version graph

Package: openjdk-7-jre; Maintainer for openjdk-7-jre is OpenJDK Team <openjdk@lists.launchpad.net>; Source for openjdk-7-jre is src:openjdk-7 (PTS, buildd, popcon).

Reported by: Erich Schubert <erich@debian.org>

Date: Mon, 25 Jun 2012 21:39:02 UTC

Severity: minor

Tags: patch, upstream

Found in version openjdk-7/7~u3-2.1.1-1

Fixed in version openjdk-7/7~u3-2.1.1-2

Done: Damien Raude-Morvan <drazzib@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>:
Bug#679036; Package openjdk-7-jre. (Mon, 25 Jun 2012 21:39:05 GMT) (full text, mbox, link).


Acknowledgement sent to Erich Schubert <erich@debian.org>:
New Bug report received and forwarded. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>. (Mon, 25 Jun 2012 21:39:07 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Erich Schubert <erich@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: openjdk-7-jre: Prints "MEvent. CASE!" to the console on certain mouse events
Date: Mon, 25 Jun 2012 23:34:39 +0200
Package: openjdk-7-jre
Version: 7~u3-2.1.1-1
Severity: normal
Tags: upstream patch

Certain actions (I'm no sure which one, I havn't been able to reproduce them
reliably) will cause this message to be printed.  This does not happen with
OpenJDK6, and it did not happen in Sun Java6.
I've seen them occur in multiple applications, for example in current MediathekView,
from http://zdfmediathk.sourceforge.net/

See also:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7130140
http://hg.openjdk.java.net/jdk7/2d/jdk/diff/3b9a288d7ddb/src/share/classes/java/awt/event/MouseEvent.java
So it is indeed a OpenJDK string, and not an application string.
And clearly, this class should not be using System.out.println, but instead use the logging API.

According to the bug report, it should happen in any applications when using mouse scroll.
I could not reproduce it again right now, not as easily. But I did not try the
mentioned example from the bug. It seems that this has been partially fixed,
but there are still situations where it occurs.
It should be trackable down using the unqiue string easily (and it probably is in MouseEvent.java)

This is a related JDK8 changeset:
http://hg.openjdk.java.net/jdk8/awt/jdk/rev/19431d07bc19

But I do not get OpenJDK Mecurial, I'm unable to find out where to see the
current JDK source. Most of the stuff is last modified 4 years ago.
The SCM is completely inaccessible to outsiders, and I was unable to find what
the changelog of MouseEvent.java for OpenJDK7 is.
If above patch applies to the current JDK7, it should be a no-brainer to add.

While for me this bug is a mere annoyance, "System.out.println" inside AWT is
bound to cause some true bugs in other applications.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openjdk-7-jre depends on:
ii  libasound2               1.0.25-3
ii  libatk-wrapper-java-jni  0.30.4-2
ii  libatk1.0-0              2.4.0-2
ii  libc6                    2.13-33
ii  libcairo2                1.12.2-2
ii  libcups2                 1.5.3-2
ii  libfontconfig1           2.9.0-6
ii  libfreetype6             2.4.9-1
ii  libgdk-pixbuf2.0-0       2.26.1-1
ii  libgif4                  4.1.6-9.1
ii  libgl1-mesa-glx          8.0.3-1
ii  libglib2.0-0             2.33.2-1
ii  libgtk2.0-0              2.24.10-1
ii  libjpeg8                 8d-1
ii  libpango1.0-0            1.30.0-1
ii  libpng12-0               1.2.49-1
ii  libpulse0                2.0-3
ii  libx11-6                 2:1.5.0-1
ii  libxext6                 2:1.3.1-2
ii  libxi6                   2:1.6.1-1
ii  libxinerama1             2:1.1.2-1
ii  libxrandr2               2:1.3.2-2
ii  libxrender1              1:0.9.7-1
ii  libxtst6                 2:1.2.1-1
ii  openjdk-7-jre-headless   7~u3-2.1.1-1
ii  zlib1g                   1:1.2.7.dfsg-13

Versions of packages openjdk-7-jre recommends:
ii  libgconf2-4       3.2.5-1
ii  libgnome2-0       2.32.1-2
ii  libgnomevfs2-0    1:2.24.4-1
ii  ttf-dejavu-extra  2.33-2

Versions of packages openjdk-7-jre suggests:
ii  icedtea-6-plugin [icedtea6-plugin]  1.2-2

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>:
Bug#679036; Package openjdk-7-jre. (Tue, 17 Jul 2012 22:54:05 GMT) (full text, mbox, link).


Acknowledgement sent to "Damien Raude-Morvan" <drazzib@drazzib.com>:
Extra info received and forwarded to list. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>. (Tue, 17 Jul 2012 22:54:05 GMT) (full text, mbox, link).


Message #10 received at 679036@bugs.debian.org (full text, mbox, reply):

From: "Damien Raude-Morvan" <drazzib@drazzib.com>
To: Erich Schubert <erich@debian.org>, 679036@bugs.debian.org
Subject: Re: [Openjdk] Bug#679036: openjdk-7-jre: Prints "MEvent. CASE!" to the console on certain mouse events
Date: Wed, 18 Jul 2012 00:42:18 +0200
Hi,

Le lundi 25 juin 2012 23:34:39, Erich Schubert a écrit :
> Certain actions (I'm no sure which one, I havn't been able to reproduce
> them reliably) will cause this message to be printed.  This does not
> happen with OpenJDK6, and it did not happen in Sun Java6.
> I've seen them occur in multiple applications, for example in current
> MediathekView, from http://zdfmediathk.sourceforge.net/

I've been unable to reproduce this reliably... Did this append often with 
MediathekView ?

> See also:
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7130140
> http://hg.openjdk.java.net/jdk7/2d/jdk/diff/3b9a288d7ddb/src/share/classes/
> java/awt/event/MouseEvent.java So it is indeed a OpenJDK string, and not an
> application string.
> And clearly, this class should not be using System.out.println, but instead
> use the logging API.

I fully agree with you : System.out usage in java.* packages should be reduced 
to a strict minimum.

> According to the bug report, it should happen in any applications when
> using mouse scroll. I could not reproduce it again right now, not as
> easily. But I did not try the mentioned example from the bug. It seems
> that this has been partially fixed, but there are still situations where
> it occurs.
> It should be trackable down using the unqiue string easily (and it probably
> is in MouseEvent.java)
> 
> This is a related JDK8 changeset:
> http://hg.openjdk.java.net/jdk8/awt/jdk/rev/19431d07bc19
> 
> But I do not get OpenJDK Mecurial, I'm unable to find out where to see the
> current JDK source. Most of the stuff is last modified 4 years ago.
> The SCM is completely inaccessible to outsiders, and I was unable to find
> what the changelog of MouseEvent.java for OpenJDK7 is.
> If above patch applies to the current JDK7, it should be a no-brainer to
> add.

Here is link to upstream JDK7 / JDK8 :
http://hg.openjdk.java.net/jdk7u/jdk7u-
dev/jdk/log/tip/src/share/classes/java/awt/event/MouseEvent.java
http://hg.openjdk.java.net/jdk8/jdk8/jdk/log/tip/src/share/classes/java/awt/event/MouseEvent.java

=> It's only fixed in JDK8 and not in recent update of JDK7.

> While for me this bug is a mere annoyance, "System.out.println" inside AWT
> is bound to cause some true bugs in other applications.

I'm not sure this warrant a specific fix : there is lots of other System.out 
usage in JDK and this is just annoyance...

Cheers,
-- 
Damien



Severity set to 'minor' from 'normal' Request was from Damien Raude-Morvan <drazzib@debian.org> to control@bugs.debian.org. (Tue, 17 Jul 2012 22:54:09 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, OpenJDK Team <openjdk@lists.launchpad.net>:
Bug#679036; Package openjdk-7-jre. (Wed, 18 Jul 2012 06:06:06 GMT) (full text, mbox, link).


Acknowledgement sent to Erich Schubert <erich@debian.org>:
Extra info received and forwarded to list. Copy sent to OpenJDK Team <openjdk@lists.launchpad.net>. (Wed, 18 Jul 2012 06:06:06 GMT) (full text, mbox, link).


Message #17 received at 679036@bugs.debian.org (full text, mbox, reply):

From: Erich Schubert <erich@debian.org>
To: Damien Raude-Morvan <drazzib@drazzib.com>
Cc: 679036@bugs.debian.org
Subject: Re: [Openjdk] Bug#679036: openjdk-7-jre: Prints "MEvent. CASE!" to the console on certain mouse events
Date: Wed, 18 Jul 2012 08:03:34 +0200
Hello Damien,
I have also seen this happen in other applications such as elki.
Indeed I do not know a use case where a Java application has a UI and
stdout is relevant (and might break another application).
However, there clearly are use cases, if you think of classic
"dialog". Someone might be using a custom java-written "dialog"
application.
I would also not report if it weren't a regression from Java 6.
But given that this didn't happen in Java 6, some problem might break
when this event occurs, which is (in contrast to other System.out
uses) apparently on certain mouse events (unfortunately, I also do not
know yet how to reliably trigger this bug, only that it happens every
now and then).

I do not think this warrants a standalone upload (or freeze
exception), but given that it is a straightforward patch from upstream
removing the "System.out", it IMHO should be queued for the next
upload.

Thank you.
Erich



Reply sent to Damien Raude-Morvan <drazzib@debian.org>:
You have taken responsibility. (Mon, 23 Jul 2012 21:21:12 GMT) (full text, mbox, link).


Notification sent to Erich Schubert <erich@debian.org>:
Bug acknowledged by developer. (Mon, 23 Jul 2012 21:21:12 GMT) (full text, mbox, link).


Message #22 received at 679036-close@bugs.debian.org (full text, mbox, reply):

From: Damien Raude-Morvan <drazzib@debian.org>
To: 679036-close@bugs.debian.org
Subject: Bug#679036: fixed in openjdk-7 7~u3-2.1.1-2
Date: Mon, 23 Jul 2012 21:17:20 +0000
Source: openjdk-7
Source-Version: 7~u3-2.1.1-2

We believe that the bug you reported is fixed in the latest version of
openjdk-7, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 679036@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Damien Raude-Morvan <drazzib@debian.org> (supplier of updated openjdk-7 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 30 Jun 2012 18:17:51 +0200
Source: openjdk-7
Binary: openjdk-7-jdk openjdk-7-jre-headless openjdk-7-jre openjdk-7-jre-lib openjdk-7-demo openjdk-7-source openjdk-7-doc openjdk-7-dbg icedtea-7-jre-cacao icedtea-7-jre-jamvm openjdk-7-jre-zero
Architecture: source amd64 all
Version: 7~u3-2.1.1-2
Distribution: sid
Urgency: low
Maintainer: OpenJDK Team <openjdk@lists.launchpad.net>
Changed-By: Damien Raude-Morvan <drazzib@debian.org>
Description: 
 icedtea-7-jre-cacao - Alternative JVM for OpenJDK, using Cacao
 icedtea-7-jre-jamvm - Alternative JVM for OpenJDK, using JamVM
 openjdk-7-dbg - Java runtime based on OpenJDK (debugging symbols)
 openjdk-7-demo - Java runtime based on OpenJDK (demos and examples)
 openjdk-7-doc - OpenJDK Development Kit (JDK) documentation
 openjdk-7-jdk - OpenJDK Development Kit (JDK)
 openjdk-7-jre - OpenJDK Java runtime, using ${vm:Name}
 openjdk-7-jre-headless - OpenJDK Java runtime, using ${vm:Name} (headless)
 openjdk-7-jre-lib - OpenJDK Java runtime (architecture independent libraries)
 openjdk-7-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark
 openjdk-7-source - OpenJDK Development Kit (JDK) source files
Closes: 657854 678228 679036 679292 679465 680284
Changes: 
 openjdk-7 (7~u3-2.1.1-2) unstable; urgency=low
 .
   * d/rules: On Debian Wheezy/Sid bump Build-Depends on libnss3-dev
     (>= 2:3.13.4) and Depends on libnss3 (>= 2:3.13.4) (ie. with epoch).
     (Closes: #679465).
   * d/control: Suggests icedtea-7-plugin instead of icedtea6-plugin
     (Closes: #680284).
   * d/patches/7130140-MouseEvent-systemout.diff: Remove "MEvent. CASE!" from
     console output. (Closes: #679036).
   * Disable -O3 compile: cause wrong Math.* computations.
     (Closes: #679292 and Closes: #678228).
   * debian/patches/FreetypeFontScaler_getFontMetricsNative.diff:
     Fix "OpenJDK returns the text height greater than font size".
     (Closes: #657854)
Checksums-Sha1: 
 e50db097f351d5aef6ff43360a354246560a57f8 3552 openjdk-7_7~u3-2.1.1-2.dsc
 ec2d80e48fd4cfb3720631539b41701ff9e54d67 197686 openjdk-7_7~u3-2.1.1-2.diff.gz
 ba7a332ea3044463223720eec651e838fe9e3849 11551262 openjdk-7-jdk_7~u3-2.1.1-2_amd64.deb
 cb7c04d513e726db82c9c286b92cb702d14d12a8 28145228 openjdk-7-jre-headless_7~u3-2.1.1-2_amd64.deb
 8ed39a98b3de9fb350b1ffe6b09c313b0826ecf0 228544 openjdk-7-jre_7~u3-2.1.1-2_amd64.deb
 8f9d1ad7e8dd77914210d2e7bed514776fe32639 2488642 openjdk-7-demo_7~u3-2.1.1-2_amd64.deb
 72f6e37058dc3d9b04440027d9363e1368802275 153889108 openjdk-7-dbg_7~u3-2.1.1-2_amd64.deb
 4dfa9db4db7bd4dae3fc84d232802af286d8ea5c 894276 icedtea-7-jre-cacao_7~u3-2.1.1-2_amd64.deb
 233f3bd75dc2183c6309c4e903e1514368f21e3b 466388 icedtea-7-jre-jamvm_7~u3-2.1.1-2_amd64.deb
 588c2c6c22799c49815e4409ffc25df5068b7021 2381042 openjdk-7-jre-zero_7~u3-2.1.1-2_amd64.deb
 2d57a09796ee1f9407bd6bdd4c932a1f496c48fa 5224258 openjdk-7-jre-lib_7~u3-2.1.1-2_all.deb
 f4405143340bea5ec3b28ac12eb78d1d24c26ec9 41355262 openjdk-7-source_7~u3-2.1.1-2_all.deb
 2a2ff875194784efe2f763bdc598b0ffb1437dff 22082738 openjdk-7-doc_7~u3-2.1.1-2_all.deb
Checksums-Sha256: 
 d454a385f7e35a41d1a92b8bb19fc5151aca151957e18b786006a32d595bb5c0 3552 openjdk-7_7~u3-2.1.1-2.dsc
 c34b122e78c09e8860378517eec10954c14011a8f6b42bf1531aae52931cd234 197686 openjdk-7_7~u3-2.1.1-2.diff.gz
 e1b8e81e5531bb534f94cbb6a17872cc89626198c0e80e6e3aaafdce37966f40 11551262 openjdk-7-jdk_7~u3-2.1.1-2_amd64.deb
 3ce30ad3ad705a70d4fc6df305d1927ac24987368d6ca914e1830393232e9741 28145228 openjdk-7-jre-headless_7~u3-2.1.1-2_amd64.deb
 459111ac93e9558a03d899debc87ab43cea382a1dab0e98a306b93c9ff8bf90e 228544 openjdk-7-jre_7~u3-2.1.1-2_amd64.deb
 08f428542d78fd6c1089faa2afd68d35c0226f683d12dfd58d18e6e4b5ed383d 2488642 openjdk-7-demo_7~u3-2.1.1-2_amd64.deb
 330a42654b9107a790666dfa0137245c7c676da243656570a3fe382d240a7058 153889108 openjdk-7-dbg_7~u3-2.1.1-2_amd64.deb
 984cc7530c54d66f175b376d979190f6ad33da87b1f2eed2be059004d7a2c4e8 894276 icedtea-7-jre-cacao_7~u3-2.1.1-2_amd64.deb
 2dd45416082489feb8d65740754004c2f0dded34b5dd2c640688f341b46dd9e9 466388 icedtea-7-jre-jamvm_7~u3-2.1.1-2_amd64.deb
 b319dc72782a13b020c26bdd313ff08eb543efed216aef81cd7d2b036fddb327 2381042 openjdk-7-jre-zero_7~u3-2.1.1-2_amd64.deb
 8ae7777cbe36e24b706ff3ffd52b82d3dd82918d76df530aa36f4d0decef99b1 5224258 openjdk-7-jre-lib_7~u3-2.1.1-2_all.deb
 5dcd4dacc1e2482e1d20c4d65e3b50fa70a67ecffd2f126d4925468bdff9de79 41355262 openjdk-7-source_7~u3-2.1.1-2_all.deb
 8bd32128fac408bb9afea5b814539bb119469e05b3e4490ad70109205474fa5e 22082738 openjdk-7-doc_7~u3-2.1.1-2_all.deb
Files: 
 19100377ac07aa64d964627a2dd6f9b3 3552 java optional openjdk-7_7~u3-2.1.1-2.dsc
 e96607a8407f96af7c65dd99fd551f1d 197686 java optional openjdk-7_7~u3-2.1.1-2.diff.gz
 b93fc43250ae20529b4d8f0f0042cac9 11551262 java optional openjdk-7-jdk_7~u3-2.1.1-2_amd64.deb
 bd2adb9d3856c22bf4496115f37caf5f 28145228 java optional openjdk-7-jre-headless_7~u3-2.1.1-2_amd64.deb
 6aa88bb38849eeb4be5c8da78e0c4481 228544 java optional openjdk-7-jre_7~u3-2.1.1-2_amd64.deb
 631c277557912935297c1e306c7a93cd 2488642 java extra openjdk-7-demo_7~u3-2.1.1-2_amd64.deb
 da43cb35de7d50bb048a0e1eccaf2610 153889108 debug extra openjdk-7-dbg_7~u3-2.1.1-2_amd64.deb
 81b51efb114d28ca2a887c1c76d4bf84 894276 java extra icedtea-7-jre-cacao_7~u3-2.1.1-2_amd64.deb
 3b4c937737216055ff765696bebea4dd 466388 java extra icedtea-7-jre-jamvm_7~u3-2.1.1-2_amd64.deb
 fdf76af5a7555017f865e0d774a31265 2381042 java extra openjdk-7-jre-zero_7~u3-2.1.1-2_amd64.deb
 26fe42b4afdae5e4ff10f16ade368b8d 5224258 java optional openjdk-7-jre-lib_7~u3-2.1.1-2_all.deb
 254678318f5abe7a2321df085e44e3bf 41355262 java extra openjdk-7-source_7~u3-2.1.1-2_all.deb
 603b0ec349beb7a41ff6c0f8158b5852 22082738 doc extra openjdk-7-doc_7~u3-2.1.1-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJQDbBGAAoJEHXiDM0z50n8VdQQAJnqoYHm3DTqpITlp2pe+u71
drSN57dsYItl/9pScu9UaXJMVuazKlQXITW2GkyMa8oHyBDGUhW0yR9qs8Rrd+4b
uKbEUH/aNX+EnRXzhuLv9281V6o9YLnellIMyrb/vedGfBP9jlbDxzfklIMiDIGz
mlcggSd3rfnGaeumNAQ8n98p3aLlhHyvbwV+BxLobSyn0rUzue1baHldMfAeGJ1Q
uFlIVmyXvSQ8Enl5S2zCxUZsT3BfHPrpxFZ2uRJnDJBqTpogljMAV1b701LIT9cx
pSDCnOzuq2E25YEH0uCv4TVx9yDFIFRFis4TJgDrnuLnehp4zG+IyE0a4bhEKHUz
lfi6kl6oDluWS1Wop0e9O3n3v3q7PWbqgju9nS/9E+qSppLQsqbJO6qfHghp5CFx
rj7YUyRlBEttTIPccEQ+r0t1vMTg/dIgGQRSTzmXCJZDyxMIRGHhS276mUfrmz05
9jHMs1pljj1U8ChmsRtJwfxrTTjX+pvHLM70biKNLbjxkXF3KkgJmWTzKlCUzEtp
C1cZYJ3xKnIKm5zWC3QjxNUZ257hbvGk9ewBaaax92MVbosXXbSiZ17Iq1s77pk+
7glg+bMDnXKG3PY7oLnre/Hj+dfROYyZR0ytNU3RKrnl4GHWmexcZUL0+mRt13Is
4Ju6IWlSRerKcNJaHokv
=PBvB
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 23 Aug 2012 07:27:48 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jan 6 19:31:22 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.