source("TestHarness.bsh");
/*
	Make sure we can call super.method() whether or not we have overridden the
	method.
*/

class Super2 extends Base 
{
	public void go() {
		assert( baseMethod().equals("baseMethod") );
		assert( super.baseMethod().equals("baseMethod") );
	}

	public String baseMethod2( int i ) {
		assert( super.baseMethod2().equals("baseMethod2") );
		try {
			assert( super.baseMethod2().equals("baseMethod2") );
		} catch ( Exception e ) { }
		return "child2";
	}

	// non public extending public
	String baseMethod3() {
		return "child3";
	}
}

s=new Super2();
s.go();
s.baseMethod2(4);
assert( s.baseMethod3().equals("child3") );

complete();
