[kaffe] Bug report: support.c:707

Max Gilead gilead at yellowhedgehog.com
Mon Feb 14 06:57:54 PST 2005


Hi!

Just found this problem in Kaffe compiled from today's CVS:

max at barracuda:~$ cd JTableTest/
max at barracuda:~/JTableTest$ jikes JTableTest.java
max at barracuda:~/JTableTest$ ../sys/kaffe/bin/kaffe -cp . JTableTest
kaffe-bin: support.c:707: lookupClassMethod: Assertion `cls != 0 && name
!= 0 && sig != 0' failed.
Aborted
max at barracuda:~/JTableTest$ cat JTableTest.java
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;

public class JTableTest
        {
        public static void main(String[] args)
                {
                Object[][] data = new Object[100][3];
                for (int i = 0; i < data.length; i++)
                        {
                        data[i][0] = "a"+i;
                        data[i][1] = "b"+i;
                        data[i][2] = "c"+i;
                        }
                JTable table = new JTable(data, new Object[] { "A", "B", "C" });
                JFrame frame = new JFrame();
                JPanel panel = new JPanel();
                panel.add(new JScrollPane(table));
                panel.setPreferredSize(new Dimension(200, 300));
                frame.setContentPane(panel);
                frame.pack();
                frame.setVisible(true);
                }
        }
max at barracuda:~/JTableTest$


Regards,
Max



More information about the kaffe mailing list