The sum of two ints may exceed MAX_VALUE. I'm not sure what java will do in that case. Does it throw an exception or will it just ignore the overrun? The whole reason for test was to provide a proper error message instead of a MathException (or something like that) which will have absolutely no meaning to the user.
Juergen On Tue, 11 Jan 2005 14:18:05 -0800, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > don't ALL ints have to be smaller than MAX_VALUE? what's the point in > testing that? > > Juergen Donnerstag wrote: > > >firstIndex + size must be smaller than MAX_VALUE. Doesn't that make sense? > > > >Juergen > > > > > >------------------------------------------------------- > >The SF.Net email is sponsored by: Beat the post-holiday blues > >Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > >It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > >_______________________________________________ > >Wicket-user mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
