Bug#588951: gcj-jre-headless: menus missing in Swing applications
Package: gcj-jre-headless
Version: 4:4.4.4-2
Severity: normal
This used to be #413295 against classpath but since classpath and
jamvm were removed from unstable I suppose I should file a modified
version against gij:
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) gij jmenu.java
Expected results:
3) A window shows up, it has menu "menu0" which includes "menuitem0" menuitem
Actual results:
3) A window shows up but it has no visible menu bar at all.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages gcj-jre-headless depends on:
ii gcj-4.4-jre-headless 4.4.4-6 Java runtime environment using GIJ
ii libgcj-common 1:4.4.4-2 Java runtime library (common files
gcj-jre-headless recommends no packages.
Versions of packages gcj-jre-headless suggests:
pn gcj-jdk <none> (no description available)
-- no debconf information
Reply to: