add additional tests for static initializers

This commit is contained in:
Alexandru-Constantin Bledea
2016-03-17 23:15:54 +02:00
parent 06c993b508
commit 1359577355
14 changed files with 76 additions and 11 deletions

View File

@@ -0,0 +1,27 @@
package pkg;
import pkg.TestClassFields;
public class TestMutableStaticOtherClass {
private static final int SIZE;
static {
TestClassFields.staticMutable = 3;// 12
SIZE = TestClassFields.staticMutable;// 13
}// 14
}
class 'pkg/TestMutableStaticOtherClass' {
method '<clinit> ()V' {
0 8
1 8
4 9
7 9
a 10
}
}
Lines mapping:
12 <-> 9
13 <-> 10
14 <-> 11