bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/26618] Graphics(2D) type hierarchy broken?


From: hendrich at informatik dot uni-hamburg dot de
Subject: [Bug awt/26618] Graphics(2D) type hierarchy broken?
Date: 10 Mar 2006 15:51:27 -0000


------- Comment #2 from hendrich at informatik dot uni-hamburg dot de  
2006-03-10 15:51 -------
I've played some more with this. The typecasts to GdkGraphics in

gnu.java.awt.peer.gtk.GtkComponentPeer.paintComponent() 
gnu.java.awt.peer.gtk.GtkComponentPeer.updateComponent()

are definitely broken when running in Java2D-mode, because the GdkGraphics2D
object returned from getGraphics() cannot be cast to a GdkGraphics. I changed
those lines to cast to a (Graphics) instead. (I still have no idea why those
typecasts were required at all.)

The next problem is a NullPointerException in RepaintManager.commitBuffer()
because GdkGraphics2D.getClipBounds() sometimes returns null. For testing,
I added a simple extra null-check to RepaintManager, but we probably want
to change Graphics2D.getClipBounds() to never return null instead.

Afterwards, my test application starts up, but it paints garbage only,
probably because the Graphics2D draw/fill operations are rather broken.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26618





reply via email to

[Prev in Thread] Current Thread [Next in Thread]