<br><br><div class="gmail_quote">On Tue, Jun 30, 2009 at 10:03, Jason Mehrens <span dir="ltr"><<a href="mailto:jason_mehrens@hotmail.com">jason_mehrens@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




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