Seems Reid M. Pinchback is right about the reflection.
Maybe in the previous versions of Java (before 1.4) there was
such option to call methods which you normally have no access to
via Java Reflection, I don't know.
I don't remember why I have left with that impression.
Maybe I've had a slightly different scenario.
The second solution though which I offered above should work
as I have had the same problem many times before. Just take
the source files you want to change, change the access
modifiers from default to public, then recompile only those
source files and put them somewhere in the classpath before
the normal/original library class (jar) files of EHCache.
This should do the job. And yes, I agree this is not a
[ March 10, 2006: Message edited by: Peter Petrov ]