Closed Mobe91 closed 10 years ago
Hi, I think someone forgot to return the casted cacheManager. So instead of
@Override public <T> T unwrap(final Class<T> clazz) { if(clazz.isAssignableFrom(getClass())) { return clazz.cast(this); } if(clazz.isAssignableFrom(cacheManager.getClass())) { clazz.cast(cacheManager); } throw new IllegalArgumentException(); }
it should be
@Override public <T> T unwrap(final Class<T> clazz) { if(clazz.isAssignableFrom(getClass())) { return clazz.cast(this); } if(clazz.isAssignableFrom(cacheManager.getClass())) { return clazz.cast(cacheManager); } throw new IllegalArgumentException(); }
Or am I missing something?
Oh yes! Who would have thought the TCK wouldn't catch that ;)
Hi, I think someone forgot to return the casted cacheManager. So instead of
it should be
Or am I missing something?