Paul Clapham wrote:If B has a protected constructor, then that constructor can be accessed by classes which are subclasses of B and by classes which are in the same package as B. Did your testing cover all of the possibilities implied by that?
Actually, my testing covered what I (thought I) knew worked under the "package and kids" accessibility rules. It didn't cover what I expected would fail, so the testing was distinctly incomplete.