prevent static field name clashes in local methods
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
@@ -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