-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add failing test for parent static field instrumentation
- Loading branch information
1 parent
1d00c9b
commit bcf7820
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
usvm-jvm-instrumentation/src/samples/java/example/ClassWithStaticField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package example; | ||
|
||
public class ClassWithStaticField { | ||
public static String STATIC_FIELD = "static field content"; | ||
} |
7 changes: 7 additions & 0 deletions
7
usvm-jvm-instrumentation/src/samples/java/example/ParentStaticFieldUser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package example; | ||
|
||
public class ParentStaticFieldUser extends ClassWithStaticField { | ||
public static String getParentStaticField() { | ||
return ParentStaticFieldUser.STATIC_FIELD; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters