In 5.1, the methods on {{org.hibernate.SharedSessionBuilder}} defined by {{SessionBuilder}} all used override+covariant to define the return as {{SharedSessionBuilder}}. As of 5.3 these methods changed to use type parameterization to define the return types ({{<T extends SharedSessionBuilder>}}). Apparently this causes binary incompatibility even though both effectively return SharedSessionBuilder. Still waiting on verification that I understand this correctly, as this seems surprising to me. The methods include:
* {{#autoClose(boolean)}} * {{#autoJoinTransactions(boolean)}} * {{#connection(Connection)}} * {{#connectionReleaseMode(ConnectionReleaseMode)}} * {{#flushBeforeCompletion(boolean)}} * {{#interceptor(Interceptor)}} * {{#noInterceptor()}} |
|