This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug AWT/16734] New: CardLayout: next card not drawn after current card is removed


In Acunia's layout.CardLayoutRemove2 test, after the first card is
removed, the next card is not shown.  When a card is removed, the next
card should be drawn.
------- Additional Comments From djee at redhat dot com  2004-02-18 14:48 -------
Fixed in java-gui-branch. Please verify.
------- Additional Comments From fitzsim at redhat dot com  2004-05-18 17:02 -------
This doesn't seem to be fixed.  I either get:

Exception in thread "REMOVER THREAD" java.lang.NullPointerException
   at java.awt.CardLayout.gotoComponent(java.awt.Container, int)
(/notnfs/gcj-bld/i686-pc-linux-gnu/libjava/.libs/lib-java-aw
t.so.0.0.0)
   at java.awt.CardLayout.next(java.awt.Container)
(/notnfs/gcj-bld/i686-pc-linux-gnu/libjava/.libs/lib-java-awt.so.0.0.0)
   at java.awt.CardLayout.removeLayoutComponent(java.awt.Component)
(/notnfs/gcj-bld/i686-pc-linux-gnu/libjava/.libs/lib-java
-awt.so.0.0.0)
   at java.awt.Container.remove(int)
(/notnfs/gcj-bld/i686-pc-linux-gnu/libjava/.libs/lib-java-awt.so.0.0.0)
   at java.awt.Container.remove(java.awt.Component)
(/notnfs/gcj-bld/i686-pc-linux-gnu/libjava/.libs/lib-java-awt.so.0.0.0)
   at
com.acunia.wonka.test.awt.layout.CardLayoutRemove2$PanelRemover.run()
(/to/scratch/fitzsim/sources/gcj-src/wonka/com/ac
unia/wonka/test/awt/layout/CardLayoutRemove2.java:96)
   at java.lang.Thread.run()
(/notnfs/gcj-bld/i686-pc-linux-gnu/libjava/.libs/libgcj.so.6.0.0)
   at _Jv_ThreadRun(java.lang.Thread)
(/notnfs/gcj-bld/i686-pc-linux-gnu/libjava/.libs/libgcj.so.6.0.0)
   at GC_start_routine
(/notnfs/gcj-bld/i686-pc-linux-gnu/libjava/.libs/libgcj.so.6.0.0)
   at __clone (/lib/tls/libc-2.3.2.so)


or worse,

Exception in thread "REMOVER THREAD" 
(:18715): GLib-GObject-WARNING **: invalid uninstantiatable type
`<unknown>' in cast to `GtkWidget'
xargs: ./vte: terminated by signal 6

------- Additional Comments From djee at redhat dot com  2004-05-18 17:11 -------
Yes, I'm certain that this test was working after I put in my fix. 
But obviously something else has broken it.  I'll look into it.
------- Additional Comments From djee at redhat dot com  2004-05-25 12:47 -------
The problem was in Container's remove() method, where the component's
parent was being set to null too early.  This is now fixed in the
java-gui-branch.  Please verify.
------- Additional Comments From fitzsim at redhat dot com  2004-05-26 17:27 -------
Verified fixed on java-gui-branch.


-- 
           Summary: CardLayout: next card not drawn after current card is
                    removed
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P1
         Component: AWT
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: djee at redhat dot com
                CC: djee at redhat dot com,gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]