Skip to content

Commit 52f4ec7

Browse files
hansohanso
authored andcommitted
InputStreamReader.ready() fails
1 parent 06895c6 commit 52f4ec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/java/io/InputStreamReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public int read(char cbuf[], int offset, int length) throws IOException {
274274
*/
275275
@Override
276276
public boolean ready() throws IOException {
277-
return isOpen;
277+
return isOpen && in.available() > 0;
278278
}
279279

280280
@Override

0 commit comments

Comments
 (0)