Extended Bytecode enhancement fails for inherited public fields

Description

This might be a duplicate of HHH-12601, but the code mentioned in that ticket is completely different from the one I encountered while analyzing the problem, so I'm not sure.

When you define a public field in a mapped superclass or in an entity superclass, inherited by an entity class:

And access the id defined in the superclass on an instance of the child class:

Then enhancement of the code above will fail with this error:

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure