"Fail fast" and constructors...
... what do if super constructors misbehave? Any way to check for
parameter validity first? Thinking about it, "chaining" constructors
have the same problem with "this"
An example: JList(Vector) and JList(Object) don't check if the given
Vector/Object parameter is !null. This leads to NPE "later" - when
accessing model.getSize(), f.i. JXList tries to fail at once, currently like
<br /> super(...);<br /> if (listData == null) throw ...<br />
Naturally, I would like to force the check before calling super. And far
back in my mind is some trick with ternary operator, but I can't
remember it or if it really is possible. Any ideas?