// Stub class generated by rmic, do not edit.
// Contents subject to change without notice.

package hostile;

public final class Damager_Stub
    extends java.rmi.server.RemoteStub
    implements net.jini.core.event.RemoteEventListener, java.rmi.Remote, java.io.Externalizable
{
    private static final long serialVersionUID = 2;
    
    private static java.lang.reflect.Method $method_notify_0;
    
    static {
	System.out.println("heeeeee");

	try {
	    $method_notify_0 = net.jini.core.event.RemoteEventListener.class.getMethod("notify", new java.lang.Class[] {net.jini.core.event.RemoteEvent.class});
	} catch (java.lang.NoSuchMethodException e) {
	    throw new java.lang.NoSuchMethodError(
		"stub class initialization failed");
	}
    }
    
    // constructors
    public Damager_Stub(java.rmi.server.RemoteRef ref) {
	super(ref);
	System.out.println("hooooo");
    }
    

    public void readExternal(java.io.ObjectInput in)
	throws java.io.IOException, ClassNotFoundException {
	super.readExternal(in);
	// System.err.println("Doing damage?");
	/*
	try {
	    Runtime.getRuntime().exec("echo > /tmp/hi");
	} catch(Exception e) {
	}
	*/
    }

    public void writeExternal(java.io.ObjectOutput out) 
        throws java.io.IOException{
        out.writeObject(this);
    }

    // methods from remote interfaces
    
    // implementation of notify(RemoteEvent)
    public void notify(net.jini.core.event.RemoteEvent $param_RemoteEvent_1)
	throws java.rmi.RemoteException, net.jini.core.event.UnknownEventException
    {
	System.out.println("haha");
	try {
	    ref.invoke(this, $method_notify_0, new java.lang.Object[] {$param_RemoteEvent_1}, 1042791172444620860L);
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (net.jini.core.event.UnknownEventException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
}
