mirror of
https://github.com/corda/corda.git
synced 2025-06-17 22:58:19 +00:00
lots of JIT bugfixes and cleanups
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
public class Misc {
|
||||
private static int alpha;
|
||||
private static int beta;
|
||||
private int gamma;
|
||||
|
||||
private String foo(String s) {
|
||||
return s;
|
||||
@ -13,11 +14,15 @@ public class Misc {
|
||||
private static String baz(String s) {
|
||||
return s;
|
||||
}
|
||||
|
||||
private static void expect(boolean v) {
|
||||
if (! v) throw new RuntimeException();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
boolean v = Boolean.valueOf("true");
|
||||
|
||||
// ClassLoader.getSystemClassLoader().toString();
|
||||
ClassLoader.getSystemClassLoader().toString();
|
||||
|
||||
int a = 2;
|
||||
int b = 2;
|
||||
@ -29,10 +34,15 @@ public class Misc {
|
||||
m.bar(s);
|
||||
baz(s);
|
||||
|
||||
// int d = alpha;
|
||||
// beta = 42;
|
||||
// alpha = 43;
|
||||
// int e = beta;
|
||||
// int f = alpha;
|
||||
int d = alpha;
|
||||
beta = 42;
|
||||
alpha = 43;
|
||||
int e = beta;
|
||||
int f = alpha;
|
||||
m.gamma = 44;
|
||||
|
||||
expect(beta == 42);
|
||||
expect(alpha == 43);
|
||||
expect(m.gamma == 44);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user