I have this scenario:
class ClassB{ ClassB(){ ClassA a = new ClassA(() -> a.foo()); } } class ClassA{ ClassA(Runnable onChange) {