JDK-6911762 : SystemTray.isSupported() result is only based on window manager name
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: OpenJDK6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2009-12-18
  • Updated: 2014-01-22
  • Resolved: 2010-10-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
OpenJDK6Resolved
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)


A DESCRIPTION OF THE PROBLEM :
The system tray is unusable with OpenJDK in Linux because XToolkit.java source code checks for Metacity or KWin window manager instead of really looking for an available system tray.
Code from OpenJDK6 b17 for the method is:
    public boolean isTraySupported() {
        int wm = XWM.getWMID();
        if (wm == XWM.METACITY_WM || wm == XWM.KDE2_WM)
        {
            return true;
        }
        return false;
    }


This bug described is here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6438179

and was fixed in JDK6 update 10 and OpenJDK7, but not in OpenJDK6.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Ubuntu Karmic 9.10 with OpenJDK installed and Compiz, call SystemTray.isSupported()


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
none - use JDK6 update 10 or higher, not OpenJDK

Release Regression From : 6u16
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

Comments
EVALUATION The bug has already been fixed - http://hg.openjdk.java.net/jdk6/jdk6/jdk/rev/ac23e40d3880
13-10-2010