Unable to enhance class with @MappedSuperclass and @Embeddable: [source error] Field XXX in YYY is private

Description

An AbstractClass annotated with @MappedSuperClass contains an @Embedded private field (with public getter and setter). A ConcreteClass extends this AbstractClass. (See attached project).

While executing the enhanced on that project, I get the following error:

If I replace the @Embedded field with a simple integer. There is no problem to enhance the class.

Environment

None

Activity

Show:
Gail Badner
April 30, 2019, 10:25 PM

, thanks for the failing test case. I see that the test passes if I comment out @Embedded on AbstractClass#range.

Your test only does enhancement. Can you check if the enhanced classes work properly with @Embedded removed?

Jérôme Joslet
May 2, 2019, 6:58 AM

This works properly if I remove the @Embedded. Thanks for the workaround.

Assignee

Unassigned

Reporter

Jérôme Joslet

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure