Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14576 > unrolled thread
| Started by | "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> |
|---|---|
| First post | 2012-05-17 15:09 +0200 |
| Last post | 2012-05-24 09:42 -0700 |
| Articles | 20 on this page of 101 — 30 participants |
Back to article view | Back to comp.lang.java.programmer
Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-17 15:09 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-05-17 09:23 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-17 17:26 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Heikki Kallasjoki <fis+usenet@zem.fi> - 2012-05-17 16:19 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-17 19:57 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-05-17 18:33 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-17 23:25 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Lew <lewbloch@gmail.com> - 2012-05-17 14:52 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-05-17 14:58 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-05-17 17:59 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Heikki Kallasjoki <fis+usenet@zem.fi> - 2012-05-17 22:13 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-18 01:18 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-05-17 21:32 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Noob <root@127.0.0.1> - 2012-05-18 17:08 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-19 20:53 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-19 21:19 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-05-19 18:47 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-20 17:55 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-19 20:18 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-19 20:21 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-19 20:52 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 18:27 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Lew <noone@lewscanon.com> - 2012-05-19 14:48 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Lew <noone@lewscanon.com> - 2012-05-19 15:20 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Lew <noone@lewscanon.com> - 2012-05-19 15:35 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 18:25 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) bugbear <bugbear@trim_papermule.co.uk_trim> - 2012-05-21 17:12 +0100
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Heikki Kallasjoki <fis+usenet@zem.fi> - 2012-05-18 07:22 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Lew <noone@lewscanon.com> - 2012-05-19 14:50 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 18:21 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 18:23 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-18 01:09 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 18:14 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-21 09:36 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-20 17:53 +0200
Re: names for parameters of ranges Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 18:30 -0400
Re: names for parameters of ranges Gene Wirchenko <genew@ocis.net> - 2012-05-20 20:48 -0700
Re: names for parameters of ranges (was: ...) Willem <willem@toad.stack.nl> - 2012-05-23 09:43 +0000
Re: names for parameters of ranges Willem <willem@toad.stack.nl> - 2012-05-23 11:07 +0000
Re: names for parameters of ranges Willem <willem@toad.stack.nl> - 2012-05-23 15:42 +0000
Re: names for parameters of ranges Willem <willem@toad.stack.nl> - 2012-05-23 11:11 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Heikki Kallasjoki <fis+usenet@zem.fi> - 2012-05-17 19:13 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Heikki Kallasjoki <fis+usenet@zem.fi> - 2012-05-17 19:19 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Jim Janney <jjanney@shell.xmission.com> - 2012-05-17 18:35 -0600
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-17 23:16 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 18:32 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-21 09:40 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-05-21 10:05 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 14:41 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 18:12 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Keith Thompson <kst-u@mib.org> - 2012-05-20 16:38 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Lew <noone@lewscanon.com> - 2012-05-20 18:52 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Keith Thompson <kst-u@mib.org> - 2012-05-20 19:21 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) gazelle@shell.xmission.com (Kenny McCormack) - 2012-05-21 08:24 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Bill Leary" <Bill_Leary@msn.com> - 2012-05-23 14:34 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-05-20 21:46 -0600
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Lew <noone@lewscanon.com> - 2012-05-21 00:04 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) gazelle@shell.xmission.com (Kenny McCormack) - 2012-05-21 08:25 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-21 09:46 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) jacob navia <jacob@spamsink.net> - 2012-05-17 18:54 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Mark Storkamp <mstorkamp@yahoo.com> - 2012-05-17 12:06 -0500
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) markspace <-@.> - 2012-05-17 10:11 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Lew <lewbloch@gmail.com> - 2012-05-17 14:43 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) markspace <-@.> - 2012-05-17 16:13 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) markspace <-@.> - 2012-05-17 16:42 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Jan Burse <janburse@fastmail.fm> - 2012-05-18 02:27 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 15:06 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Marius" <sorry@nospamfor.me> - 2012-05-17 17:32 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-17 23:45 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Marius" <sorry@nospamfor.me> - 2012-05-17 22:16 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-18 00:47 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-24 14:11 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-24 14:17 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Roedy Green <see_website@mindprod.com.invalid> - 2012-05-18 02:57 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-05-18 05:26 -0500
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-05-18 08:08 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 14:46 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) rossum <rossum48@coldmail.com> - 2012-05-18 12:25 +0100
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Gene Wirchenko <genew@ocis.net> - 2012-05-18 10:46 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-19 21:01 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 18:33 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Patricia Shanahan <pats@acm.org> - 2012-05-20 16:30 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Gene Wirchenko <genew@ocis.net> - 2012-05-20 20:36 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Kaz Kylheku <kaz@kylheku.com> - 2012-05-21 04:28 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-21 09:55 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-21 09:49 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-05-21 10:08 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-21 10:45 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-21 11:13 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-21 11:19 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Lew <lewbloch@gmail.com> - 2012-05-21 11:40 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Arne Vajhøj <arne@vajhoej.dk> - 2012-05-20 18:10 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-21 10:00 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Joshua Cranmer <Pidgeot18@verizon.invalid> - 2012-05-21 10:10 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) falk@rahul.net (Edward A. Falk) - 2012-05-23 05:40 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Jim Janney <jjanney@shell.xmission.com> - 2012-05-23 08:46 -0600
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2012-05-24 14:03 +0200
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Lew <lewbloch@gmail.com> - 2012-05-24 09:56 -0700
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) falk@rahul.net (Edward A. Falk) - 2012-05-26 00:52 +0000
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Jamie <jamie_ka1lpa_not_valid_after_ka1lpa_@charter.net> - 2012-05-25 21:16 -0400
Re: Oracle/Google demonstrate human beings cannot write 10 lines of code without making a mistake ;) Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2012-05-24 09:42 -0700
Page 2 of 6 — ← Prev page 1 [2] 3 4 5 6 Next page →
| From | "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> |
|---|---|
| Date | 2012-05-19 20:52 +0200 |
| Message-ID | <da4e8$4fb7ebf8$5419acc3$7417@cache60.multikabel.net> |
| In reply to | #14648 |
Hmm.. I saw some document stating: "motion for rangeCheck denied" or something... so it seems to be resolved already at least the law matter ;) Bye, Skybuck.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-05-20 18:27 -0400 |
| Message-ID | <4fb96fbf$0$293$14726298@news.sunsite.dk> |
| In reply to | #14648 |
On 5/19/2012 2:21 PM, Skybuck Flying wrote: > Anyway the court case seems to be about "copyrightable api". > > If this is actually a private method then I don't see how that's > relevant... since it's not part of the actually published api ! ;) No. The trial was about 3 things: A) patent violation B) copyright violations in some specific code C) copyright violation due to using Java API This code snippet was part of B. C is what is generally considered most interesting. Arne
[toc] | [prev] | [next] | [standalone]
| From | Lew <noone@lewscanon.com> |
|---|---|
| Date | 2012-05-19 14:48 -0700 |
| Message-ID | <jp94fl$tkc$1@news.albasani.net> |
| In reply to | #14647 |
On 05/19/2012 11:18 AM, Skybuck Flying wrote:
>
>
> "Joshua Cranmer" wrote in message news:jp48rq$6s8$1@dont-email.me...
>
> 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.
> "
>
> Nonsense, this code could have come from anywhere.
>
> There is no proof that this came from any api at all.
>
> I have yet to see any proof from the court case that this is actually from
> java.util.Arrays.
>
> The only thing hinting that it might be a private method is the static
> keyword, well excuse me for not being a java [sic] expert ;)
Clearly not.
Or you wouldn't say things like "The only thing hinting that it might be a
private method is the static keyword". It doesn't hint that. But not being a
Java expert, perhaps you'd best withhold judgment as to what a certain Java
keyword hints. Applied to a method, it states (not hints) that the method
belongs to the class itself, not any particular instance thereof.
The source code is publicly available, and one can thus guess used in the
court case as one might discover should one dig deeply enough. If you had
wanted proof for yourself that the method is private, and if you really did
look at the publicly and easily discoverable source code, you would have found
the proof there, should you have so chosen and acted upon that choice, to the
devil with the court case.
Anyway, whether it's from the court case or not is irrelevant, since we're
responding to your personal judgment: "To me it appears as if rangeCheck is
some low level operating system code or memory management code ...". Your
respondents are doing you the courtesy of providing the information to inform
your judgment so that the doubt, trepidation and uncertainty of "To me it
appears" (which surely must create a yearning for true answers in your mind)
can be replaced with the confidence of "It is".
From the source for Java 7, Copyright 1997, 2011 by Oracle and cited here by
fair use for editorial purposes:
and I quote:
via copy and paste:
private static void rangeCheck(int length, int fromIndex, int toIndex) {
Hey, wait a doggone minute. Your original post quoted that very line. From the
court case, was it not?
How extensively did you read the court documents, and could you please link
your sources?
Your crossposts were utterly inane so I removed them. They won't mind, I'm sure.
--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
[toc] | [prev] | [next] | [standalone]
| From | Lew <noone@lewscanon.com> |
|---|---|
| Date | 2012-05-19 15:20 -0700 |
| Message-ID | <jp96c4$2co$1@news.albasani.net> |
| In reply to | #14654 |
> Skybuck Flying wrote: >> Joshua Cranmer wrote: >>> 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. >> " >> Nonsense, this code could have come from anywhere. >> >> There is no proof that this came from any api [sic] at all. >> >> I have yet to see any proof from the court case that this is actually from >> java.util.Arrays. How about this, from the final instructions to the jury in the case: "[Oracle's] technical expert Dr. Mitchell ... opined that rangeCheck, at least, appeared on handsets, id. ¶ 240, though he never expressed any opinion that it was important to handset functionality. The closest he came to expressing any opinion that rangeCheck has any value were his opinions that (1) rangeCheck was “qualitatively significant to” the Arrays.java file, ..." <http://www.groklaw.net/articlebasic.php?story=20120516083919975> The only reason you had "yet to see any proof from the court case that this is actually from java.util.Arrays" is that you hadn't looked. >> The only thing hinting that it might be a private method is the static >> keyword, well excuse me for not being a java [sic] expert ;) Did you notice the 'private' keyword? Did you not think that relevant to whether it's a private method? -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
[toc] | [prev] | [next] | [standalone]
| From | Lew <noone@lewscanon.com> |
|---|---|
| Date | 2012-05-19 15:35 -0700 |
| Message-ID | <jp976s$3no$1@news.albasani.net> |
| In reply to | #14656 |
On 05/19/2012 03:20 PM, Lew wrote: >> Skybuck Flying wrote: >>> Joshua Cranmer wrote: >>>> 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. >>> " >>> Nonsense, this code could have come from anywhere. >>> >>> There is no proof that this came from any api [sic] at all. >>> >>> I have yet to see any proof from the court case that this is actually from >>> java.util.Arrays. > > How about this, from the final instructions to the jury in the case: Correction: It's from "GOOGLE’S BRIEF RE ORACLE’S FAILURE OF PROOF ON CAUSATION". It all flows on the one page, nevertheless it's in the record for that court case. > "[Oracle's] technical expert Dr. Mitchell ... opined that rangeCheck, at > least, appeared on handsets, id. ¶ 240, though he never expressed any opinion > that it was important to handset functionality. The closest he came to > expressing any opinion that rangeCheck has any value were his opinions that > (1) rangeCheck was “qualitatively significant to” the Arrays.java file, ..." > <http://www.groklaw.net/articlebasic.php?story=20120516083919975> > > The only reason you had "yet to see any proof from the court case that this is > actually from java.util.Arrays" is that you hadn't looked. > >>> The only thing hinting that it might be a private method is the static >>> keyword, well excuse me for not being a java [sic] expert ;) > > Did you notice the 'private' keyword? Did you not think that relevant to > whether it's a private method? > -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-05-20 18:25 -0400 |
| Message-ID | <4fb96f4d$0$293$14726298@news.sunsite.dk> |
| In reply to | #14647 |
On 5/19/2012 2:18 PM, Skybuck Flying wrote: > Nonsense, this code could have come from anywhere. > > There is no proof that this came from any api at all. > > I have yet to see any proof from the court case that this is actually > from java.util.Arrays. That has been clearly proven in court. And the source for Arrays.java is available, so you can check if you think someone lied in court. > The only thing hinting that it might be a private method is the static > keyword, well excuse me for not being a java expert ;) SO you dot think the presence of the private keyword indicates that it is private? Interesting! Arne
[toc] | [prev] | [next] | [standalone]
| From | bugbear <bugbear@trim_papermule.co.uk_trim> |
|---|---|
| Date | 2012-05-21 17:12 +0100 |
| Message-ID | <D7CdnVF4t4Tx9CfSnZ2dnUVZ8jydnZ2d@brightview.co.uk> |
| In reply to | #14647 |
Skybuck Flying wrote: > > The only thing hinting that it might be a private method is the static keyword, well excuse me for not being a java expert ;) You might want to stop making a fool of yourself by commenting in ignorance. BugBear
[toc] | [prev] | [next] | [standalone]
| From | Heikki Kallasjoki <fis+usenet@zem.fi> |
|---|---|
| Date | 2012-05-18 07:22 +0000 |
| Message-ID | <slrnjrbu60.gee.fis@iris.zem.fi> |
| In reply to | #14607 |
On 2012-05-17, Skybuck Flying <Windows7IsOK@DreamPC2006.com> wrote: > 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 would be interesting to know where this "rangeCheck" function is from. AFAIK, it's originally from TimSort, the sorting algorithm used in Java nowadays. See http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/TimSort.java?view=co -- rangeCheck is at the end of the file. It's not low-level at all; the sandboxing is enforced by the Java VM. It's just used once to check the arguments of sort(), before starting the actual work, presumably in order to get more sensible-looking exceptions that it might otherwise produce. > I would not be surprised that the functions you mentioned would be the cause > of many bugs in java programs. > > Almost seems like a deliberate design to make java programs crash... perhaps Strongly disagree. I wouldn't be surprised if the number of places where half-open intervals are used would outnumber the uses of fully inclusive ranges, though a thorough survey is outside the scope of this message. I can only think of PHP range() and Perl "a..b" notation offhand. I'm sure more can be found; but then again, that applies also to half-open ranges, for which C++ (STL), JavaScript, Python and Java have already been mentioned. -- Heikki Kallasjoki
[toc] | [prev] | [next] | [standalone]
| From | Lew <noone@lewscanon.com> |
|---|---|
| Date | 2012-05-19 14:50 -0700 |
| Message-ID | <jp94ib$tkc$2@news.albasani.net> |
| In reply to | #14607 |
Skybuck Flying wrote: > There is no "rangeCheck" function for java.util.Arrays: Oh, really? <http://www.docjar.com/html/api/java/util/Arrays.java.html> You quoted it verbatim yourself in your first post. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-05-20 18:21 -0400 |
| Message-ID | <4fb96e55$0$293$14726298@news.sunsite.dk> |
| In reply to | #14607 |
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 That only shows public methods. And the code snippet said private. So ... > 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. Th JVM does that fine without this check. > Almost seems like a deliberate design to make java programs crash... > perhaps a nice test for the "sand boxing" which after many years has > proven to be a failure, google for java exploits ;) > > One of the reasons why java will not be installed onto my computers now > and in the future. > > Seeing these functions only re-assures me of my decision to do so. Maybe you should learn: * the difference between an app and an applet * the differnce between crash and throwing an exception Arne
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-05-20 18:23 -0400 |
| Message-ID | <4fb96ede$0$293$14726298@news.sunsite.dk> |
| In reply to | #14607 |
On 5/17/2012 7:18 PM, Skybuck Flying wrote: > It would be interesting to know where this "rangeCheck" function is from. http://www.theverge.com/2012/4/19/2961128/google-chief-java-architect-likely-i-copied-sun-code-in-android explains that. Arne
[toc] | [prev] | [next] | [standalone]
| From | "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> |
|---|---|
| Date | 2012-05-18 01:09 +0200 |
| Message-ID | <bd887$4fb5851a$5419acc3$11635@cache90.multikabel.net> |
| In reply to | #14600 |
"Joshua Cranmer" wrote in message news:jp3sbr$s52$1@dont-email.me...
On 5/17/2012 5:25 PM, Skybuck Flying wrote:
> One such concept is "range".
>
> It's pretty clearly defined:
>
> http://en.wikipedia.org/wiki/Range_(computer_programming)
>
> Any computer language deviating from the standard/common meaning of
> range should clearly state so.
"
In 0-based array indexes, the standard interpretation of a range is the
half-open model: start <= value < end. Note in particular things like
the standard STL idioms, JavaScript slice, python's methods.
"
More reference material on this would be nice.
None the less this does not mean that STL is correct, it could be flawed
just like standard library for C's gets.
"
That you spend so much time arguing that this interpretation is wrong
indicates that you don't both to do much programming. Also, note that
Wikipedia isn't necessarily correct.
"
For such a simple concept as "range" to state that wikipedia is incorrect is
a bit cheap/cheesy.
None the less programming was invented by mathematicians so let's see what
they have to say about it:
"
Answer:
For a Function
The "range" is the set of all possible values of a function for the values
of the variable.
Read more:
http://wiki.answers.com/Q/What_is_the_definition_of_range_in_math#ixzz1vAehNwPN
"
The array can be considered the variable, the values of this variable can be
considered the indexes.
The data elements can be considered the indirect values which are pointed
towards by the indexes.
Therefore "all possible values" is the full range from 0 to 9 for an array
of 10 elements starting with a zero based index.
Interestingly enough another website defines the range to be "9" (highest
value - smallest value). Which seems to be a compounded variable/value.
However here array length is specified which is 10 and thus not a "range" in
this sense. Thus length != range.
Finally your claims make me wonder if this is perhaps why "for each" and
"for all" was invented because c++ programmers fok-up to much with the
openness which you described ! ;)
That would be quite amuzing that you guys now need a special "for each" to
iterate correctly ;)
So much for that lol ("programming skill") ;)
Bye,
Skybuck.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-05-20 18:14 -0400 |
| Message-ID | <4fb96cb9$0$283$14726298@news.sunsite.dk> |
| In reply to | #14594 |
On 5/17/2012 5:25 PM, Skybuck Flying wrote: > Not really, > > Programmers of all languages must be able to communicate with each other > through common language and concepts. > > One such concept is "range". > > It's pretty clearly defined: > > http://en.wikipedia.org/wiki/Range_(computer_programming) > > Any computer language deviating from the standard/common meaning of > range should clearly state so. > > Any code deviating from the standard/coming meaning of range should > clearly state so. It does! You just chose not to read it! > Fortunately for us the code is available, but this is not always the > case in other programming languages like C where sometimes only headers > are available. C function also has documentation. And unlike you most C programmers will probably read it. Arne
[toc] | [prev] | [next] | [standalone]
| From | "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> |
|---|---|
| Date | 2012-05-21 09:36 +0200 |
| Message-ID | <22b61$4fb9fc61$5419acc3$22636@cache1.tilbu1.nb.home.nl> |
| In reply to | #14686 |
"Arne Vajhøj" wrote in message news:4fb96cb9$0$283$14726298@news.sunsite.dk... On 5/17/2012 5:25 PM, Skybuck Flying wrote: > Not really, > > Programmers of all languages must be able to communicate with each other > through common language and concepts. > > One such concept is "range". > > It's pretty clearly defined: > > http://en.wikipedia.org/wiki/Range_(computer_programming) > > Any computer language deviating from the standard/common meaning of > range should clearly state so. > > Any code deviating from the standard/coming meaning of range should > clearly state so. " It does! " No not really, not from that code snippet. " You just chose not to read it! " No, the only code available is what I posted. > Fortunately for us the code is available, but this is not always the > case in other programming languages like C where sometimes only headers > are available. " C function also has documentation. And unlike you most C programmers will probably read it. Arne " This code snippet came without any documentation. If the body wasn't present then it would be unclear to what the range would be. Only a java expert/experienced programmer might know this odd range behaviour. Plenty of other programming language do not follow this odd range behaviour as well as general math. Bye, Skybuck.
[toc] | [prev] | [next] | [standalone]
| From | "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> |
|---|---|
| Date | 2012-05-20 17:53 +0200 |
| Message-ID | <1bd38$4fb91376$5419acc3$14683@cache80.multikabel.net> |
| In reply to | #14589 |
"glen herrmannsfeldt" wrote in message news:jp3g9r$v22$1@speranza.aioe.org... In comp.lang.java.programmer Skybuck Flying <Windows7IsOK@dreampc2006.com> wrote: (snip) >>> if (fromIndex < 0) >>> throw new ArrayIndexOutOfBoundsException(fromIndex); >>> if (toIndex > arrayLen) >>> throw new ArrayIndexOutOfBoundsException(toIndex); (snip, someone else wrote) >> I believe it is checking whether the range fromIndex, fromIndex+1, ..., >> toIndex-1 -- i.e., a range given as the first index and one past the >> last index, not an uncommon practice -- is within the array, in which >> case it has no bugs. (toIndex may legally equal the length of the array >> when the range extends to the last element, and requiring the range to >> be specified "the right way around" is not especially perverse.) >> " > It's simply not valid. Out of bounds has a very clear meaning > in programming practice. It's either within bounds or it's not. But this isn't "programming" it is Java, and Java can do it however it wants to. > The bounds of a java array are very clearly defined. Thus the > only logical conclusion is that the code is simply bugged. > Either in logic or in description. Either change the > exception-description or fix the code. " Look at the definition of the substring method in String class. " String might/could be an exception, but me not interested in strings so much. " It avoids a lot of -1 by the programmer to define it this way. (Along with consistently starting indexing at zero.) " The -1 is what keep programs correct. It's the lack of -1 that will ultimately lead to bugs, confusion and problems ! ;) :) Not to mention wrong ranges ! ;) Learn to use -1 consistently and all will be fine ! ;) :) =D Bye, Skybuck.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-05-20 18:30 -0400 |
| Subject | Re: names for parameters of ranges |
| Message-ID | <4fb9706e$0$293$14726298@news.sunsite.dk> |
| In reply to | #14673 |
On 5/20/2012 12:24 PM, Stefan Ram wrote: > "Skybuck Flying"<Windows7IsOK@DreamPC2006.com> writes: >> But this isn't "programming" it is Java, and Java can do it however >> it wants to. > > Yes. But it is not only Java, it also is English used for > mnemonic identifiers. And in English, phrases like »from > index« and »to index« have a meaning. > > So, if one would name a parameter »maximum« and then specify > this to mean the maximum plus 1, it would be a bad name. bad name != bug especially if it is documented. Heikki posted the Java docs in another post: /** * Checks that fromIndex and toIndex are in range, and throws an * appropriate exception if they aren't. * * @param arrayLen the length of the array * @param fromIndex the index of the first element of the range * @param toIndex the index after the last element of the range * @throws IllegalArgumentException if fromIndex > toIndex * @throws ArrayIndexOutOfBoundsException if fromIndex < 0 * or toIndex > arrayLen */ It is pretty clear how toIndex should be used even with that name. Arne
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Date | 2012-05-20 20:48 -0700 |
| Subject | Re: names for parameters of ranges |
| Message-ID | <9mejr7t9ai5kqcq0fa307bjku37kg3nf8g@4ax.com> |
| In reply to | #14691 |
On Sun, 20 May 2012 18:30:05 -0400, Arne Vajhøj <arne@vajhoej.dk>
wrote:
>On 5/20/2012 12:24 PM, Stefan Ram wrote:
>> "Skybuck Flying"<Windows7IsOK@DreamPC2006.com> writes:
>>> But this isn't "programming" it is Java, and Java can do it however
>>> it wants to.
>>
>> Yes. But it is not only Java, it also is English used for
>> mnemonic identifiers. And in English, phrases like »from
>> index« and »to index« have a meaning.
>>
>> So, if one would name a parameter »maximum« and then specify
>> this to mean the maximum plus 1, it would be a bad name.
>
>bad name != bug
>
>especially if it is documented.
Admitting to a mistake does not make it not a mistake.
[snip]
Sincerely,
Gene Wirchenko
[toc] | [prev] | [next] | [standalone]
| From | Willem <willem@toad.stack.nl> |
|---|---|
| Date | 2012-05-23 09:43 +0000 |
| Subject | Re: names for parameters of ranges (was: ...) |
| Message-ID | <slrnjrpca8.17s1.willem@toad.stack.nl> |
| In reply to | #14673 |
Stefan Ram wrote:
) Yes. But it is not only Java, it also is English used for
) mnemonic identifiers. And in English, phrases like ?from
) index? and ?to index? have a meaning.
)
) So, if one would name a parameter ?maximum? and then specify
) this to mean the maximum plus 1, it would be a bad name.
)
) For example, we can read:
)
) ?The left and right edges of the rectangle are at x and x + width.
) The top and bottom edges are at y and y + height.?
)
) http://docs.oracle.com/javase/7/docs/api/java/awt/Graphics.html#drawRect(int, int, int, int)
)
) Now, let's take this ?width? to be 1, and x to be 3,
) y = 5, height = 3, we have the following rectangle
) drawn according to the documentation:
)
) 9
) 8 ##
) 7 ##
) 6 ##
) 5 ##
) 4
) 3
) 2
) 1
) 0123456789
)
) When one looks at this rectangle, would one say that its
) width was 1 and its height was 3? Yet this is the way the
) parameters are named!
One would, if one were to define a 'line' to be centered on the pixel.
You seem to define it to be on the edge of the pixel. Both are plausible.
Look at this, for example:
10
9 +---+---+
8 | | |
7 | | |
6 | | |
5 +---+---+
4 | | |
3 | | |
2 | | |
1 +---+---+
0
0123456789
Is it four 4x4 rectangles that together form an 8x8 rectangle,
or is it four 5x5 rectangles that form a 9x9 rectangle?
The latter would be odd, given that 5+5=10 (and not 9).
And once you get into transforming coordinates, anti-aliasing
and whatnot, your definition falls flat on its face.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
[toc] | [prev] | [next] | [standalone]
| From | Willem <willem@toad.stack.nl> |
|---|---|
| Date | 2012-05-23 11:07 +0000 |
| Subject | Re: names for parameters of ranges |
| Message-ID | <slrnjrph6t.2dqm.willem@toad.stack.nl> |
| In reply to | #14750 |
Stefan Ram wrote:
) Willem <willem@toad.stack.nl> writes:
)>And once you get into transforming coordinates, anti-aliasing
)>and whatnot, your definition falls flat on its face.
)
) I do not know what the wording ?your definition? above
) refers to. So, maybe, you could give this definition and
) then show how it ?falls flat on its face? when
) ?transforming coordinates?.
Then you should read my post again. Especially the bits you snipped,
and specifically the bit with the phrase 'you seem to define it ...'.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
[toc] | [prev] | [next] | [standalone]
| From | Willem <willem@toad.stack.nl> |
|---|---|
| Date | 2012-05-23 15:42 +0000 |
| Subject | Re: names for parameters of ranges |
| Message-ID | <slrnjrq1b0.1a0l.willem@toad.stack.nl> |
| In reply to | #14753 |
Stefan Ram wrote:
) Willem <willem@toad.stack.nl> writes:
)>Then you should read my post again. Especially the bits you snipped,
)>and specifically the bit with the phrase 'you seem to define it ...'.
)
) Ok, this was not a definition given by me, so the rest does not apply.
Obviously you're just here to "win" arguments instead of having an actual
discussion. Grow up.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
[toc] | [prev] | [next] | [standalone]
Page 2 of 6 — ← Prev page 1 [2] 3 4 5 6 Next page →
Back to top | Article view | comp.lang.java.programmer
csiph-web