add additional tests for static initializers
This commit is contained in:
@@ -17,6 +17,7 @@ package pkg;
|
||||
|
||||
public class TestClassFields {
|
||||
|
||||
static int staticMutable;
|
||||
private static int[] sizes;
|
||||
private static String[] names;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
13
testData/src/pkg/TestInterfaceWithPrimitiveField.java
Normal file
13
testData/src/pkg/TestInterfaceWithPrimitiveField.java
Normal 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;
|
||||
|
||||
}
|
||||
15
testData/src/pkg/TestMutableStaticOtherClass.java
Normal file
15
testData/src/pkg/TestMutableStaticOtherClass.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user