InFlightMetadataCollectorImpl can throw an unrecoverable MappingException during the second pass in processEndOfQueue

Description

I have not been able to pin down the exact reproduction steps but what I've found is that when doing processEndOfQueue and going into ToOneFkSecondPass.doSecondPass, BinderHelper.createSyntheticPropertyReference can throw a MappingException when trying to Ejb3JoinColumn.checkReferencedColumnsType due to the ordering of passes in the List<FkSecondPass> endOfQueueFkSecondPasses collection.

Since the loop inside the ToOneFkSecondPass.doSecondPass only catches RecoverableException the whole second pass fails.

Environment

SQL Server express 2012

Assignee

Unassigned

Reporter

КириллА

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure