bug-classpath
[Top][All Lists]
Advanced

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

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


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

Sorry. I think I have a blackout here...

I am accustomed to get ClassCastExceptions from several of my test apps, 
but I always assumed these were due to Graphics2D not being properly 
implemented.

However, some testing reveals that GtkComponent.paintComponent() actually
casts to GdkGraphics, with GdkGraphics2D not a subclass of GdkGraphics.
Please tell me I am doing something stupid! I just won't believe that 
classpath could have run my apps for ages, if not for this particular way
of designing the type hierarchy. It seems that my custom component returns
a valid Graphics2D, but GtkComponent refuses to use that...

See attached testcase.

- Norman


-- 
           Summary: Graphics(2D) type hierarchy broken?
           Product: classpath
           Version: 0.90
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: awt
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hendrich at informatik dot uni-hamburg dot de


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





reply via email to

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