Skip to content

Commit

Permalink
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/src/main/java/org/jruby/ext/zlib/JZlibRubyGzipReader.java
Original file line number Diff line number Diff line change
@@ -483,7 +483,15 @@ public IRubyObject getbyte() {
return getc();
}

@JRubyMethod(name = "getc")
@JRubyMethod(name = "readbyte")
public IRubyObject readbyte() {
IRubyObject dst = getbyte();
if (dst.isNil()) {
throw getRuntime().newEOFError();
}
return dst;
}

public IRubyObject getc_19() {
try {
int value = bufferedStream.read();

2 comments on commit 158902f

@nirvdrum
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was getc supposed to be removed? It looks like this change is failing master now.

@headius
Copy link
Member Author

@headius headius commented on 158902f Jun 15, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.