[kaffe] testcase: non-deterministic behavior with Swing

Timo Juhani Lindfors timo.lindfors at iki.fi
Sat Jan 29 13:25:13 PST 2005


while trying to produce a reduced testcase for a kaffe bug I
encountered non-deterministic behavior with the following code snippet
(also available at http://iki.fi/lindi/Test4.java ):

/* Testcase: The window opens only with a probability of about 40%
 * with kaffe from cvs 2005-01-29 while jamvm 1.2.4 with gnu classpath
 * from cvs 2005-01-27 opens the window every time */

import javax.swing.*;

public class Test4 extends JFrame {
        public Test4() {
                JLabel label = new JLabel("foo");
                JPanel panel = new JPanel();
        public static void main(String[] args) {
                new Test4().setVisible(true);

best regards,
Timo Lindfors

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20050129/0a3aa693/attachment-0002.pgp 

More information about the kaffe mailing list