Incorrect work of the method StringBufferInputStream.read in DalvikVM
<pre><code>byte[] buf=new byte[5];

StringBufferInputStream sbis=new StringBufferInputStream("5");
int c=-2;
c=sbis.read(buf, 0, 5);
c=sbis.read(buf, 1, 4);
</code></pre>

<p>As a result, c == 0 but it should be c == -1</p>

<p>I tried StringBufferInputStream of openjdk-6-src-b24-14_nov_2011 and the error disappeared.</p>
