Re: [kaffe] Problem with BufferedInputStream [patch]

2003-06-07 Thread Dalibor Topic
--- Dalibor Topic <[EMAIL PROTECTED]> wrote: > Hi Mark, > > --- Mark Wielaard <[EMAIL PROTECTED]> wrote: > > Hi, > > > > > On Thu, 2003-06-05 at 17:54, Mark Wielaard wrote: > > > > On Thu, 2003-06-05 at 15:48, Helmer Krämer wrote: > > > > > So I would not completely remove the loop, but rather r

Re: [kaffe] Problem with BufferedInputStream [patch]

2003-06-07 Thread Dalibor Topic
Hi Mark, --- Mark Wielaard <[EMAIL PROTECTED]> wrote: > Hi, > > > On Thu, 2003-06-05 at 17:54, Mark Wielaard wrote: > > > On Thu, 2003-06-05 at 15:48, Helmer Krämer wrote: > > > > So I would not completely remove the loop, but rather replace it with > > > > something like "do {} while (len>0 && a

Re: [kaffe] Problem with BufferedInputStream [patch]

2003-06-07 Thread Mark Wielaard
Hi, > On Thu, 2003-06-05 at 17:54, Mark Wielaard wrote: > > On Thu, 2003-06-05 at 15:48, Helmer Krämer wrote: > > > So I would not completely remove the loop, but rather replace it with > > > something like "do {} while (len>0 && available()>0)"; dunno whether > > > that's really more correct, tho

Re: [kaffe] Problem with BufferedInputStream [patch]

2003-06-06 Thread Mark Wielaard
Hi, On Thu, 2003-06-05 at 17:54, Mark Wielaard wrote: > On Thu, 2003-06-05 at 15:48, Helmer Krämer wrote: > > So I would not completely remove the loop, but rather replace it with > > something like "do {} while (len>0 && available()>0)"; dunno whether > > that's really more correct, though... > >

Re: [kaffe] Problem with BufferedInputStream [patch]

2003-06-06 Thread Mark Wielaard
Hi, On Thu, 2003-06-05 at 15:48, Helmer Krämer wrote: > Just some minor comments, though. If I understand the spec correctly, > BufferedInputStream.read() should block until data is available and > read as much of it as possible afterwards (either until the destination > buffer is full or until fu

Re: [kaffe] Problem with BufferedInputStream [patch]

2003-06-05 Thread Helmer Krämer
On 05 Jun 2003 14:41:41 +0200 Mark Wielaard <[EMAIL PROTECTED]> wrote: Hi Mark, > The attached patch removes the while (len > 0) construct which makes the > above program (and The Hunting of the Snark Project) work correctly. > > Mauve and make check results do not show regressions with this cha

[kaffe] Problem with BufferedInputStream [patch]

2003-06-05 Thread Mark Wielaard
Hi, I tried to get my java bittorrent project (http://www.klomp.org/snark/), working with kaffe and found a problem with BufferedInputStream. The code contains the following construct (simplified, the real code uses a Socket InputStream): public class ReadLineTest { public static void main(Stri