jason_mehrens at hotmail.com
Tue Jun 30 17:03:20 UTC 2009
Regarding this IAE issue, another approach might be given non null Comparator 'c':
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.
>The JDK project has unusually high compatibility concerns.
>I and Josh believe the introduction of a possible IAE if the
>comparator doesn't satisfy its contract is the right thing,
>but we'd also be willing to change the code to swallow the IAE
>or to do so conditionally based on the value of a system property.
>Keep in mind that a call to foreign code can throw any throwable at all,
>so a rogue comparator can cause arbitrary behavior even today.
I>t's up to Sun/CCC.
Lauren found her dream laptop. Find the PC that’s right for you.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the core-libs-dev