Details
Description
Class type check in runtime beans to test whether a class is an instance of HippoCompound or not would result in a wrong behaviour if a content bean is inherited from another content bean. It should be fixed by doing the correct check.
private Class<?> getDelegateeClass(final String superMethodName) { if (METHOD_GET_HIPPO_HTML.equals(superMethodName)) { if (HippoCompound.class.isAssignableFrom(parentBean)) { return HippoCompound.class; } else { return HippoDocument.class; } } else { return HippoBean.class; } }