Index: src/org/jruby/RubyIO.java
===================================================================
--- src/org/jruby/RubyIO.java	(revision 8229)
+++ src/org/jruby/RubyIO.java	(working copy)
@@ -2783,32 +2783,32 @@
        }
    }
    
-    public static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) {
+    public static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObject[] args) {
         switch (args.length) {
         case 0: throw context.getRuntime().newArgumentError(0, 1);
-        case 1: return read(context, recv, args[0], block);
-        case 2: return read(context, recv, args[0], args[1], block);
-        case 3: return read(context, recv, args[0], args[1], args[2], block);
+        case 1: return read(context, recv, args[0],Block.NULL_BLOCK);
+        case 2: return read(context, recv, args[0], args[1]);
+        case 3: return read(context, recv, args[0], args[1], args[2]);
         default: throw context.getRuntime().newArgumentError(args.length, 3);
         }
    }
    
     @JRubyMethod(name = "read", meta = true)
-    public static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObject arg0, Block block) {
+    public static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObject arg0, Block unusedBlock) {
        IRubyObject[] fileArguments = new IRubyObject[] {arg0};
-       RubyIO file = (RubyIO) RubyKernel.open(context, recv, fileArguments, block);
-       
+       RubyIO file = (RubyIO) RubyKernel.open(context, recv, fileArguments, Block.NULL_BLOCK);
+
        try {
-           return file.read(context);
+	 return file.read(context);
        } finally {
-           file.close();
+	 file.close();
        }
    }
    
     @JRubyMethod(name = "read", meta = true)
-    public static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, Block block) {
+    public static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) {
        IRubyObject[] fileArguments = new IRubyObject[] {arg0};
-       RubyIO file = (RubyIO) RubyKernel.open(context, recv, fileArguments, block);
+       RubyIO file = (RubyIO) RubyKernel.open(context, recv, fileArguments, Block.NULL_BLOCK);
        
         try {
             if (!arg1.isNil()) {
@@ -2822,9 +2822,9 @@
    }
    
     @JRubyMethod(name = "read", meta = true)
-    public static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block) {
+    public static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) {
         IRubyObject[] fileArguments = new IRubyObject[]{arg0};
-        RubyIO file = (RubyIO) RubyKernel.open(context, recv, fileArguments, block);
+        RubyIO file = (RubyIO) RubyKernel.open(context, recv, fileArguments, Block.NULL_BLOCK);
 
         if (!arg2.isNil()) {
             file.seek(context, arg2);
@@ -2842,12 +2842,12 @@
     }
    
     @JRubyMethod(name = "readlines", required = 1, optional = 1, meta = true)
-    public static RubyArray readlines(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) {
+    public static RubyArray readlines(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block unusedBlock) {
         int count = args.length;
 
         IRubyObject[] fileArguments = new IRubyObject[]{ args[0].convertToString() };
         IRubyObject[] separatorArguments = count >= 2 ? new IRubyObject[]{args[1]} : IRubyObject.NULL_ARRAY;
-        RubyIO file = (RubyIO) RubyKernel.open(context, recv, fileArguments, block);
+        RubyIO file = (RubyIO) RubyKernel.open(context, recv, fileArguments, Block.NULL_BLOCK);
         try {
             return file.readlines(context, separatorArguments);
         } finally {

