So I know this is confusing but why does this work? If I have
public class A implements Parcelable{
private B propB;
}
public class B extends A implements Parcelable{
private int stuff;
}
so if I ever created a
A objectA = new A();
wouldn't there be an infinite loop of this: objectA.propB.propB.propB?
the main issue is that I want to pass an instance of class B in android as a bundle, but this is not working, no error, just data doesn't get passed through. All the properties and data gets passed through except for that one property that seems to be a circular dependency..
is there a reason why this is good practice? or is it just not a good idea?