Review: JDK 8 CR for Support Integer overflow updated (original) (raw)

Brian Goetz brian.goetz at oracle.com
Wed Feb 15 05:07:52 UTC 2012


In your subsequent email, I found that the asXXX and toXXX variants to be too similar to make it clear which throws and which does not or other differences unless it were a pervasive pattern that all developers would know and use.

We encourage this convention:

There are two dimensions along which you might make the distinction:

In general, "as" operations are perceived as cheaper than "to" operations.



More information about the core-libs-dev mailing list