It wasn't Overriding since it wasn't actually overriding the method. DefaultContext has put(Object, Object) but OverridableContext had put(String, Object) and thus its usage in ContextBuilder where it did put(String, Object) it was using the method from DefaultContext.
A patch to OverridableContext to actually override the get() and put() in DefaultContext is attached. -pete -- peter royal -> [EMAIL PROTECTED]
Index: build.xml =================================================================== RCS file: /home/cvspublic/jakarta-avalon-excalibur/fortress/build.xml,v retrieving revision 1.8 diff -u -r1.8 build.xml --- build.xml 13 Apr 2002 10:04:32 -0000 1.8 +++ build.xml 18 Apr 2002 01:58:47 -0000 @@ -21,6 +21,7 @@ <pathelement location="${excalibur-instrument.jar}"/> <pathelement location="${excalibur-instrument-manager.jar}"/> <pathelement location="${excalibur-instrument-manager-interfaces.jar}"/> + <pathelement location="${excalibur-instrument-manager.jar}"/> <pathelement location="${excalibur-testcase.jar}"/> <pathelement location="${excalibur-event.jar}"/> <pathelement location="${excalibur-util.jar}"/> Index: src/java/org/apache/excalibur/fortress/util/OverridableContext.java =================================================================== RCS file: /home/cvspublic/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/util/OverridableContext.java,v retrieving revision 1.6 diff -u -r1.6 OverridableContext.java --- src/java/org/apache/excalibur/fortress/util/OverridableContext.java 4 Apr 2002 16:04:28 -0000 1.6 +++ src/java/org/apache/excalibur/fortress/util/OverridableContext.java 18 Apr 2002 01:58:47 -0000 @@ -33,7 +33,7 @@ super( parent ); } - public Object get( String key ) + public Object get( Object key ) throws ContextException { Object value = super.get( key ); @@ -46,7 +46,7 @@ return value; } - public void put( String key, Object value ) + public void put( Object key, Object value ) { super.put( key, ( value == null ) ? new Null() : value ); }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>