Commit 42ee0c64 authored by Lukáš Marek's avatar Lukáš Marek

Fixed processor test - not accessing uninitialized value

parent 0a66a224
......@@ -14,7 +14,7 @@ public class DiSLClass {
@SyntheticLocal
public static String flag = "Start";
@Before(marker = BodyMarker.class, order = 0, scope = "TargetClass.*")
@Before(marker = BodyMarker.class, order = 0, scope = "TargetClass.m*")
public static void insideMethod(MethodSC ci, ProcessorContext pc, DynamicContext dc) {
System.out.println("(In) Method " + ci.thisMethodName() + ": ");
......@@ -28,7 +28,7 @@ public class DiSLClass {
System.out.println(ProcessorTest.flag);
}
@Before(marker = BytecodeMarker.class, args="invokevirtual", order = 0, scope = "TargetClass.*")
@Before(marker = BytecodeMarker.class, args="invokevirtual", order = 0, scope = "TargetClass.m*")
public static void beforeInvocation(MethodSC ci, ProcessorContext pc) {
System.out.println("(Before) Method : ");
......
Exception in thread "main" java.lang.VerifyError: (class: ..., method: ... signature: ... Expecting to find object/array on stack
- this error ocures if the user accesses and uses uninitialized object
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment