Reason for the exception java.lang.VerifyError: Bad type on operand stack
The problem arises because your lambda expression does not reference this or a member of this but a member of the outer this. Had you written class B like the compiler rejected it without any doubts as accessing innerData implies accessing this. The point about the outer instance is that it is a constant which is even available when the inner instance has not been fully … Read more