source("TestHarness.bsh");

class MyHashMap extends HashMap 
{
	public Object get( Object obj ) {
		return "getMyHashMap";
	}

	public Object get2( Object obj ) {
		//return _bshSuperget( obj );
		return super.get(obj);
	}

	public void clear() { 
		//_bshSuperclear();
		super.clear();
	}

	static go() {
		assert( isEvalError("super.clear()") );
	}

	public void test( int a ) { }
}

map=new MyHashMap();
map.put("foo", "bar");

assert( map.get("foo").equals("getMyHashMap") );
assert( map.get2("foo").equals("bar") );
map.clear();
assert( map.get2("foo") == null );

MyHashMap.go();

complete();
