aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/custom/JNLPClassLoaderDeadlock/srcs/JNLPClassLoaderDeadlock_1.java
blob: 616e5d37bab5d44b842f76b899d3b0f78206e63c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import java.applet.Applet;
import java.awt.*;

public class JNLPClassLoaderDeadlock_1 extends Applet {

    @Override
    public void init() {
        System.out.println("JNLPClassLoaderDeadlock_1 applet initialized");
        final String version = System.getProperty("java.version") + " (" + System.getProperty("java.vm.version") + ")";
        final String vendor = System.getProperty("java.vendor");
        final TextField tf = new TextField(40);
        tf.setText(version + " -- " + vendor);
        tf.setEditable(false);
        tf.setBackground(Color.white);
        setBackground(Color.white);
        add(tf);
        System.out.println("JNLPClassLoaderDeadlock_1 applet finished");
        System.out.println("*** APPLET FINISHED ***");
    }

    public static void main(String[] args) {
        new JNLPClassLoaderDeadlock_1().init();
    }
}