Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Arithmetic overflow checking Date: Wed, 06 Jul 2011 09:42:44 -0700 Organization: A noiseless patient Spider Lines: 14 Message-ID: References: <015aeb15-57db-48ab-9cd4-77f8448b632f@w24g2000yqw.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 6 Jul 2011 16:42:47 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="5HSAJfqnDjjLFxXZ6WBWEw"; logging-data="14131"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+RjAwbDfwiw3tR4uoAcccIm8bInPq9/jo=" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 In-Reply-To: <015aeb15-57db-48ab-9cd4-77f8448b632f@w24g2000yqw.googlegroups.com> Cancel-Lock: sha1:6rEGcWVzsnb89FWWpb22/N3sEqM= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5908 On 7/6/2011 8:35 AM, rop rop wrote: > Hi, > > If I want to have arithmetic-overflow checking in all parts of an > application, > what is the most practical, simple, efficient way to achieve this? > Id like to clutter the code as little a possible... > Is there any way to instruct the JVM to include it? Nope, can't be done. And yes I've griped about this myself, so you're in good (well, average at least) company.