#!/bin/java bsh.Interpreter

source("TestHarness.bsh");

import bsh.*;

i=new Interpreter();
r=i.eval(
	"return new Runnable() {"
	+"void run() { throw new EvalError(\"foo\"); } }");
try {
	r.run();
} catch ( e ) {
	super.ue=e;
	assert( e instanceof java.lang.reflect.UndeclaredThrowableException );
}

/*
make sure it properly prints the nested exception... 

import bsh.TargetError;
te=new TargetError( "undec throw", ue );
print(te);
*/

complete();
