We're updating the issue view to help you get more done. 

SessionBuilder / SharedSessionBuilder

Description

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()

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Steve Ebersole

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major