ClassCastException when changing a Collection association to a Set if @PreUpdate listener exists

Description

If a @PreUpdate listener is present, a ClassCastException is raised during flush after an update of an association defined to use collection (bag) semantics when the assigned value is a set.

 

 

Environment

None

Activity

Show:
Steve Ebersole
July 6, 2019, 12:30 PM

If the listener is removed from the equation the test passes?

Stephen Fikes
July 8, 2019, 2:56 PM

The test passes if @PreUpdate is commented out in the listener or if the entity listener is not listed in the entity class.

Gail Badner
July 30, 2019, 8:07 PM

Fixed in master; it will be fixed in 5.3 branch soon.

Gail Badner
August 2, 2019, 10:39 PM

Fixed in 5.3 branch as well.

Assignee

Gail Badner

Reporter

Stephen Fikes

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure