-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
public class B {
int i;
int x;
C c;
public B() {
C c1 = new C();
this.c = c1;
this.i = 10;
}
public B(int x) {
this();
C c1 = new C(x);
this.c = c1;
this.x = x;
}
}
public class C {
int a;
public C() {
this(1000);
}
public C(int a) {
this.a = a;
}
}
public class Main {
public static void main(String[] args) {
B b1 = new B(8);
B b3 = new B(9);
//B b2 = new B(100);
//C c1 = new C();
//C c3 = new C();
//C c2 = new C(88);
//int a = b1.c.a;
}
}
Analysis Result:
We expect that heap[w]:pp@'B.java':6:15[a]: [8, 9]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
