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

@@ -17,6 +17,7 @@ package pkg;
public class TestClassFields {
static int staticMutable;
private static int[] sizes;
private static String[] names;

View File

@@ -6,7 +6,7 @@ import java.math.BigDecimal;
* @author Alexandru-Constantin Bledea
* @since March 06, 2016
*/
public interface TestInterfaceWithObject {
public interface TestInterfaceWithObjectField {
BigDecimal BUGS_IN_THE_DECOMPILER = BigDecimal.ZERO;

View File

@@ -0,0 +1,13 @@
package pkg;
import java.math.BigDecimal;
/**
* @author Alexandru-Constantin Bledea
* @since March 06, 2016
*/
public interface TestInterfaceWithPrimitiveField {
int MAX_BYTE_VALUE = Byte.MAX_VALUE;
}

View File

@@ -0,0 +1,15 @@
package pkg;
/**
* @author Alexandru-Constantin Bledea
* @since March 17, 2016
*/
public class TestMutableStaticOtherClass {
private static final int SIZE;
static {
TestClassFields.staticMutable = 3;
SIZE = TestClassFields.staticMutable;
}
}