From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,fee8802cc3d8334d X-Google-Attributes: gid10a146,public X-Google-Thread: 103376,fee8802cc3d8334d X-Google-Attributes: gid103376,public From: Geoff Bull Subject: Re: Ada and Java. different behaviour. casting long to int problem. Date: 1999/07/20 Message-ID: <3793F5E0.1C7004CE@research.canon.com.au>#1/1 X-Deja-AN: 502991188 Content-Transfer-Encoding: 7bit References: <7jt2c0$vrb@drn.newsguy.com> <7k57vb$1ipf@drn.newsguy.com> <3766650F.705125B7@pwfl.com> <7k64t7$igo$1@its.hooked.net> <7k689a$ci2@drn.newsguy.com> <3766C842.E1EAB60A@pwfl.com> <3766D1CC.D712895E@itools.symantec.com> <7k7ls5$15tv@drn.newsguy.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@research.canon.com.au X-Trace: cass.research.canon.com.au 932443611 27737 203.12.174.227 (20 Jul 1999 04:06:51 GMT) Organization: Canon Information Systems Research Australia Mime-Version: 1.0 NNTP-Posting-Date: 20 Jul 1999 04:06:51 GMT Newsgroups: comp.lang.ada,comp.lang.java.programmer Date: 1999-07-20T04:06:51+00:00 List-Id: bill@world.nospam.com wrote: > > Why is it that java throws a run-time exception when one attempts to > write passed array boundary, but closes it eyes when an overflow occurs? Because Java's checks are designed to ensure the security of the JVM, not detect programming errors. That they catch any programming errors is merely a pleasant side effect. (This is, of course, my personal opinion).