Commit ff20fdf6 authored by Lukáš Marek's avatar Lukáš Marek

Fixed gettarget test

parent f8ac6209
......@@ -12,6 +12,7 @@
java -Ddislserver.port="1234" \
-Ddebug=true \
$* \
-jar build/dislserver-unspec.jar \
&
......
package ch.usi.dag.disl.test.gettarget;
class A {
class TargetClassA {
public void foo() {
B.callFoo(0, 1);
TargetClassB.callFoo(0, 1);
}
}
class B {
class TargetClassB {
public void foo(int i, int j) {
System.out.println("Inside b.foo");
}
public static void callFoo(int i, int j) {
B b = new B();
TargetClassB b = new TargetClassB();
b.foo(i, j);
}
}
......@@ -20,7 +20,7 @@ class B {
public class TargetClass {
public static void main(String[] args) {
A a = new A();
TargetClassA a = new TargetClassA();
a.foo();
}
}
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