Bug#483919: classpath-qtpeer: Classpath AWT support still royally broken

Michael Koch konqueror at gmx.de
Fri Jun 6 11:25:03 UTC 2008


tag 483919 upstream
forwarded 483919 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36448
thanks


On Sun, Jun 01, 2008 at 10:51:10AM +0200, Josef Spillner wrote:
> Package: classpath-qtpeer
> Version: 2:0.97.1-3
> Severity: normal
> 
> I'm trying to run a hybrid Java applet/application on an AMD64 sid machine. While my goal
> would be to get the applet running, I'm already stuck with some Classpath bugs regarding
> any GUI activity of the application.
> 
> When using gij-4.3 with the Gtk+ peers, the application just hangs instead of opening a
> window. Selecting the Qt peers doesn't seem to be possible. When deliberately giving it a
> wrong URL, it should just show an error message box. It does so with the Gtk+ peers although
> the text is not readable on it and the button cannot be clicked.
> 
> When using cacao instead of gij-4.3, I can select the Qt peers. But it doesn't help, instead
> the backtrace hints at some missing methods in the peers.
> 
> $ cacao -Dawt.toolkit=gnu.java.awt.peer.qt.QtToolkit -jar ggz-java-client.jar -uri foo
> QPixmap: It is not safe to use pixmaps outside the GUI thread
> [...]
> Exception in thread "main" java.lang.UnsupportedOperationException
>    at gnu.java.awt.peer.qt.QtFontPeer.getLineMetrics(QtFontPeer.java:188)
>    at java.awt.Font.getLineMetrics(Font.java:1029)
> [...]
>    at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:1442)
> 
> The JAR file can be downloaded from:
>   http://us.ggzgamingzone.org/~josef/ggz-java-client.jar
> It works fine with the latest JDK7 builds and other Sun releases.
> 
> Ideally, the bug would be considered fixed when the application runs without any problems.
> But any sort of status information and hints would already help. According to Tom Marble's
> Debconf7 talk, OpenJDK would become a Lenny release goal, but it doesn't seem to be the case
> according to release.debian.org.

The QT peer is known to miss some features. The font handling is such
feature when you need to access fonts yourself. This is an upstream
issue. Patches are always welcome.

I forwarded your request.


Cheers,
Michael





More information about the pkg-java-maintainers mailing list