On Tue, Jun 30, 2009 at 10:03, Jason Mehrens <[email protected]>wrote:
> Martin,
>
> Regarding this IAE issue, another approach might be given non
> null Comparator 'c':
>
> if(c.getClass().desiredAssertionStatus()) {
> throw new AssertionError(".....");
> }
>
> Then there is no compatibility problem,no need to add a new switch to the
> JDK, and the coder gets smacked with an error.
>
>
... if assertions are turned on (which happens far too rarely)
But still an interesting idea - I had not seen it before.
I wonder what Josh thinks.
Martin