Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8542
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | Lew <lewbloch@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Buffered reading seems to corrupt data stream |
| Date | Tue, 4 Oct 2011 12:06:36 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 41 |
| Message-ID | <73981.2133.1317755196942.JavaMail.geo-discussion-forums@prfh23> (permalink) |
| References | <y4Cdne-uvN4kUBTTnZ2dnUVZ_hWdnZ2d@westnet.com.au> <j6cv50$2fk$2@dont-email.me> <19587162.2005.1317743300210.JavaMail.geo-discussion-forums@prfh23> <bpGdnWtFWejMshbTnZ2dnUVZ_tOdnZ2d@posted.palinacquisition> |
| Reply-To | comp.lang.java.programmer@googlegroups.com |
| NNTP-Posting-Host | 2620:0:1000:437c:224:d7ff:fe69:5838 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1317755291 29158 127.0.0.1 (4 Oct 2011 19:08:11 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Tue, 4 Oct 2011 19:08:11 +0000 (UTC) |
| In-Reply-To | <bpGdnWtFWejMshbTnZ2dnUVZ_tOdnZ2d@posted.palinacquisition> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:437c:224:d7ff:fe69:5838; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8542 |
Show key headers only | View raw
Peter Duniho wrote: > Lew wrote: >> Just this once the question was answerable (and answered, elsethread) without the SSCCE [...] > > By that standard, _all_ questions are answerable without an SSCCE. A > person attempting an answer can always make a guess, and that guess > always has a non-zero probability of being correct. You're preaching to the choir! I did point out that the omission only worked "just this once", not recommend it. And as you point out, the score is less than one for one. > It was not possible from the code posted to _know_ that the OP was > actually recreating the BufferedInputStream anew each time. One could > certainly guess, and of course Ronny did (and did so correctly, as it > turns out). > > But without an SSCCE, we know that the code posted deviates from the > _actual_ code in some way, and it could just as easily have been that > part of the deviation included an oversimplification of how > BufferedInputStream was used. > > Other guesses were made as well (i.e. my own), based on the same > incomplete information, and they were wrong. The guess that > BufferedInputStream was being recreated each time could have been wrong > too, since the code posted was obviously not really the code the OP was > using. > > That guess turned out to be right, and I give all credit to Ronny for > taking the code at face value and making the guess he did. He succeeded > where at least some of the rest of us failed. But there was no > assurance at all that would have happened (*) > > An SSCCE isn't just a good idea; it's a practical requirement. Amen, brother! -- Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar
Buffered reading seems to corrupt data stream "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-10-04 01:58 +1100
Re: Buffered reading seems to corrupt data stream "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-10-04 02:26 +1100
Re: Buffered reading seems to corrupt data stream Ronny Schütz <usenet.r96@gishpuppy.com> - 2011-10-03 17:54 +0200
Re: Buffered reading seems to corrupt data stream "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-10-04 07:07 +1100
Re: Buffered reading seems to corrupt data stream Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-10-03 13:18 -0700
Re: Buffered reading seems to corrupt data stream "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-10-04 10:54 +1100
Re: Buffered reading seems to corrupt data stream Roedy Green <see_website@mindprod.com.invalid> - 2011-10-03 11:46 -0700
Re: Buffered reading seems to corrupt data stream Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-10-03 08:44 -0700
Re: Buffered reading seems to corrupt data stream markspace <-@.> - 2011-10-03 11:33 -0700
Re: Buffered reading seems to corrupt data stream Lew <lewbloch@gmail.com> - 2011-10-04 08:48 -0700
Re: Buffered reading seems to corrupt data stream Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-10-04 09:07 -0700
Re: Buffered reading seems to corrupt data stream Lew <lewbloch@gmail.com> - 2011-10-04 12:06 -0700
csiph-web