Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Joshua Cranmer Newsgroups: alt.comp.lang.borland-delphi,comp.lang.c,comp.lang.java.programmer Subject: Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Date: Thu, 17 May 2012 21:32:26 -0400 Organization: A noiseless patient Spider Lines: 16 Message-ID: References: <29308868.1994.1337265697084.JavaMail.geo-discussion-forums@pbcuc6> <84131$4fb54067$5419acc3$20839@cache90.multikabel.net> <4e980$4fb56cac$5419acc3$13190@cache60.multikabel.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 18 May 2012 01:32:43 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="pI4Z3tyqu+LR6ovgG/2wGg"; logging-data="7048"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18P1ux+xhhilacLyIPDQAdf5rguBzKG8CQ=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: Cancel-Lock: sha1:zuB/NOrd8EYCO3aybliNy+KIeD8= Xref: csiph.com comp.lang.c:20966 comp.lang.java.programmer:14611 On 5/17/2012 7:18 PM, Skybuck Flying wrote: > There is no "rangeCheck" function for java.util.Arrays: > > http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html > > To me it appears as if rangeCheck is some low level operating system > code or memory management code to try and prevent the os or applications > from crashing or exploits from taking over the system. It's a private method in java.util.Arrays, which is why the API does not list it. If you actually read the code you'd posted, you would have realized that. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth