Package: classpath Version: 2:0.92-4 Severity: normal Steps to reproduce: 1) cat > jmenu.java << EOF import javax.swing.*; import java.awt.*; public class jmenu extends JFrame { public static void main(String[] args) { (new jmenu()).show(); } public jmenu() { JMenuBar mb = new JMenuBar(); this.setJMenuBar(mb); JMenu m = new JMenu("menu0"); mb.add(m); JMenuItem mi = new JMenuItem("menuitem0"); m.add(mi); m.add(mi); this.setSize(new Dimension(600, 600)); } } EOF 2) ecj jmenu.java 3) jamvm jmenu.java
Expected results: 3) A window shows up, it has menu "menu0" which includes "menuitem0" menuitem Actual results: 3) A window shows up bit it has no visible menu bar at all. More info: 1) The above works in debian testing, I see the problematic behavior only in unstable. 2) In addition to jamvm the bug is reproducible with gij-4.1 and cacao. However, I see the menu in kaffe. This made me think the bug is probably in classpath and not in any individual virtual machine. 3) I haven't tested with classpath cvs head since I couldn't figure out how to tell cacao to use classpath cvs head (I did manage to build classpath cvs head with ecj though and I can compile java 1.5 programs with ecj -1.5 -bootclasspath ~/installdir/classpath-2007-01-22/share/classpath/glibj.zip "$@" ) Please let me know if you can't reproduce the bug. I'm happy to provide more info. -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.4.32sauna0 Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1) Versions of packages classpath depends on: ii classpath-common 2:0.92-4 clean room standard Java libraries ii classpath-gtkpeer 2:0.92-4 clean room standard Java libraries ii libasound2 1.0.13-2 ALSA library ii libatk1.0-0 1.12.4-2 The ATK accessibility toolkit ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libcairo2 1.2.4-4 The Cairo 2D vector graphics libra ii libfontconfig1 2.4.2-1.2 generic font configuration library ii libgcj-common 1:4.1.1-21 Java runtime library (common files ii libgconf2-4 2.16.1-1 GNOME configuration database syste ii libglib2.0-0 2.12.6-2 The GLib library of C routines ii libgtk2.0-0 2.8.20-5 The GTK+ graphical user interface ii libjack0.100.0-0 0.101.1-2 JACK Audio Connection Kit (librari ii libmagic1 4.19-1 File type determination library us ii liborbit2 1:2.14.4-1 libraries for ORBit2 - a CORBA ORB ii libpango1.0-0 1.14.8-5 Layout and rendering of internatio ii libx11-6 2:1.0.3-5 X11 client-side library ii libxcursor1 1.1.7-4 X cursor management library ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar ii libxfixes3 1:4.0.1-5 X11 miscellaneous 'fixes' extensio ii libxi6 1:1.0.1-4 X11 Input extension library ii libxinerama1 1:1.0.1-4.1 X11 Xinerama extension library ii libxrandr2 2:1.1.0.2-5 X11 RandR extension library ii libxrender1 1:0.9.1-3 X Rendering Extension client libra ii libxtst6 1:1.0.1-5 X11 Testing -- Resource extension classpath recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]