You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Call graph generation does not analyze the clinit.
Therefore, method calls in the static area are missed and RTA does not know which classes are instantiated in the static area.
Code snippet with both problems
public class B{
public int foo(){return 8;}
}
public class C extends B{
public int foo(){return 3;}
public static C build () {return new C();}
}
public class A {
static C c=C.build();
public static void main(String[] args) {
B b=c;
b.foo
}
}
unit test for method calls in clinit
unit test for instantiated classes in clinit for RTA
analyze cinit in the worklist
The text was updated successfully, but these errors were encountered:
Currently, the Call graph generation does not analyze the clinit.
Therefore, method calls in the static area are missed and RTA does not know which classes are instantiated in the static area.
Code snippet with both problems
The text was updated successfully, but these errors were encountered: