| Hi Niko Wittenbeck, Chris Cranford, So the problematic method is:
public Generic.Type $$_hibernate_read_entity()
{
if ($$_hibernate_getInterceptor() != null) {
super.$$_hibernate_write_entity((Marker)$$_hibernate_getInterceptor().readObject(this, "entity", super.$$_hibernate_read_entity()));
}
return super.$$_hibernate_read_entity();
}
with super.$$_hibernate_read_entity() returning a Marker. I don't have a lot of experience in bytecode enhancement but the return type looks fine, considering entity is coming from private T entity;, which is a Generic.Type in this case. I wonder if the right fix wouldn't be to cast the return value i.e. having:
return (Generic.Type) super.$$_hibernate_read_entity();
What do you all think? |