forked from java2script/java2script
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest0.java
More file actions
84 lines (57 loc) · 1.32 KB
/
Copy pathTest0.java
File metadata and controls
84 lines (57 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
class Test0 {
class Test0a extends Test0 {
Test0a() {
System.out.println("Test0.Test0a");
}
}
static class Exc extends NullPointerException {
static class Exc1 {
String finals = "finals1";
void test(boolean b) {
}
}
void test(String s, boolean b) {
class Exc2 extends NullPointerException {
Exc2() {
System.out.println("Test0.Exc2");
}
class Exc3 extends Exc2 {
Exc3() {
System.out.println("Test0.Exc2.Exc3");
}
}
}
}
}
static boolean j2sHeadless = true;
public static void main(String[] args) {
String f = "1";
class exc2 extends Exc.Exc1 {
String finals = "finalsEx2";
class Exc3 {
Exc3() {
System.out.println(finals);
}
}
void test() {
System.out.println(f);
}
}
System.out.println("hello from Test0");
String.valueOf("test");
new Test0_Applet().init();
System.out.println(Test0_Applet.staticVar);
Object o = Thread.currentThread();
Object oo = Thread.class;
Object ooo = Thread.State.class;
StringReader rdr = null;
try (BufferedReader br = new BufferedReader(rdr)) {
} catch (java.io.IOException | NullPointerException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}