Update to 5.2 from 4.3 breaks optional lazy loaded properties

Description

I had setup bytecode instrumentation to enable nullable lazy property loading for hibernate 4.3.
After the migration to hibernate 5.2.1 the lazy loading behaviour seems to be broken.

The configuration I have is:

For instrumentation, I've disabled everything I could and only left the lazy loading instrumentation

Entity containing the lazy loaded field

Lazy loaded field declaration

Type of the lazy field

What I get is this:

Environment

migration from 4.3 to 5.2.1, using hsqldb for integration testing

Assignee

Unassigned

Reporter

YervandY

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Critical
Configure