← Back to team overview

openjdk team mailing list archive

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

 

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




Follow ups