prevent static field name clashes in local methods
This commit is contained in:
BIN
testData/classes/pkg/TestStaticNameClash.class
Normal file
BIN
testData/classes/pkg/TestStaticNameClash.class
Normal file
Binary file not shown.
20
testData/results/TestStaticNameClash.dec
Normal file
20
testData/results/TestStaticNameClash.dec
Normal file
@@ -0,0 +1,20 @@
|
||||
package pkg;
|
||||
|
||||
public class TestStaticNameClash {
|
||||
public static String property;
|
||||
|
||||
public static void setProperty(String property) {
|
||||
TestStaticNameClash.property = property;// 12
|
||||
}// 13
|
||||
}
|
||||
|
||||
class 'pkg/TestStaticNameClash' {
|
||||
method 'setProperty (Ljava/lang/String;)V' {
|
||||
1 6
|
||||
4 7
|
||||
}
|
||||
}
|
||||
|
||||
Lines mapping:
|
||||
12 <-> 7
|
||||
13 <-> 8
|
||||
15
testData/src/pkg/TestStaticNameClash.java
Normal file
15
testData/src/pkg/TestStaticNameClash.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package pkg;
|
||||
|
||||
/**
|
||||
* @author Alexandru-Constantin Bledea
|
||||
* @since March 07, 2016
|
||||
*/
|
||||
public class TestStaticNameClash {
|
||||
|
||||
public static String property;
|
||||
|
||||
public static void setProperty(final String property) {
|
||||
TestStaticNameClash.property = property;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user