Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.util;
 
 import org.jruby.Ruby;
 
 public class JRubyObjectInputStream extends ObjectInputStream {
    private final Ruby runtime;
    public JRubyObjectInputStream(Ruby runtimeInputStream inputthrows IOException {
        super(input);
        this. = runtime;
    }
    protected Class<?> resolveClass(ObjectStreamClass desc)
        throws IOExceptionClassNotFoundException
    {
        String name = desc.getName();
        try {
            return Class.forName(namefalse.getJRubyClassLoader());
        } catch (ClassNotFoundException ex) {
            return super.resolveClass(desc);
        }
    }
New to GrepCode? Check out our FAQ X