parent
1359577355
commit
93a39b7b50
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,26 +1,37 @@ |
||||
package pkg; |
||||
|
||||
public class TestClassFields { |
||||
static int staticMutable; |
||||
private static int[] sizes; |
||||
private static String[] names = new String[]{"name1", "name2"}; |
||||
private static final int SIZE; |
||||
|
||||
static { |
||||
sizes = new int[names.length];// 27 |
||||
}// 28 |
||||
sizes = new int[names.length];// 15 |
||||
TestClassFields.Inner.staticMutable = 3;// 17 |
||||
SIZE = TestClassFields.Inner.staticMutable;// 14 18 |
||||
}// 19 |
||||
|
||||
private static class Inner { |
||||
private static int staticMutable; |
||||
} |
||||
} |
||||
|
||||
class 'pkg/TestClassFields' { |
||||
method '<clinit> ()V' { |
||||
0 10 |
||||
2 9 |
||||
11 8 |
||||
14 8 |
||||
17 8 |
||||
1a 9 |
||||
22 10 |
||||
25 11 |
||||
} |
||||
} |
||||
|
||||
Lines mapping: |
||||
27 <-> 9 |
||||
28 <-> 10 |
||||
Not mapped: |
||||
26 |
||||
14 <-> 11 |
||||
15 <-> 9 |
||||
17 <-> 10 |
||||
18 <-> 11 |
||||
19 <-> 12 |
||||
|
@ -0,0 +1,9 @@ |
||||
package pkg; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
public interface TestInterfaceFields { |
||||
BigDecimal BIG_ZERO = BigDecimal.ZERO; |
||||
int MAX_BYTE_VALUE = 127; |
||||
} |
||||
|
@ -1,8 +0,0 @@ |
||||
package pkg; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
public interface TestInterfaceWithObjectField { |
||||
BigDecimal BUGS_IN_THE_DECOMPILER = BigDecimal.ZERO; |
||||
} |
||||
|
@ -1,6 +0,0 @@ |
||||
package pkg; |
||||
|
||||
public interface TestInterfaceWithPrimitiveField { |
||||
int MAX_BYTE_VALUE = 127; |
||||
} |
||||
|
@ -1,27 +0,0 @@ |
||||
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 |
@ -1,29 +1,20 @@ |
||||
/* |
||||
* Copyright 2000-2014 JetBrains s.r.o. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
package pkg; |
||||
|
||||
public class TestClassFields { |
||||
private static class Inner { |
||||
private static int staticMutable; |
||||
} |
||||
|
||||
static int staticMutable; |
||||
private static int[] sizes; |
||||
private static String[] names; |
||||
|
||||
static { |
||||
private static final int SIZE; |
||||
|
||||
static { |
||||
names = new String[]{"name1", "name2"}; |
||||
sizes = new int[names.length]; |
||||
|
||||
Inner.staticMutable = 3; |
||||
SIZE = Inner.staticMutable; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,8 @@ |
||||
package pkg; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
public interface TestInterfaceFields { |
||||
BigDecimal BIG_ZERO = BigDecimal.ZERO; |
||||
int MAX_BYTE_VALUE = Byte.MAX_VALUE; |
||||
} |
@ -1,13 +0,0 @@ |
||||
package pkg; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
/** |
||||
* @author Alexandru-Constantin Bledea |
||||
* @since March 06, 2016 |
||||
*/ |
||||
public interface TestInterfaceWithObjectField { |
||||
|
||||
BigDecimal BUGS_IN_THE_DECOMPILER = BigDecimal.ZERO; |
||||
|
||||
} |
@ -1,13 +0,0 @@ |
||||
package pkg; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
/** |
||||
* @author Alexandru-Constantin Bledea |
||||
* @since March 06, 2016 |
||||
*/ |
||||
public interface TestInterfaceWithPrimitiveField { |
||||
|
||||
int MAX_BYTE_VALUE = Byte.MAX_VALUE; |
||||
|
||||
} |
@ -1,15 +0,0 @@ |
||||
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; |
||||
} |
||||
} |
Loading…
Reference in new issue