MapJoin.key() produces unusable Path object

Description

I'm using MapJoin like this:

The em.createQuery(cq) call throws a NullPointerException:

The same code works fine on EclipseLink.

Seems that the problem is in the MapKeyHelpers.MapKeySource constructor, which calls the super constructor from AbstractPathSource with a null pathSource argument:

This way, the pathSource is initialized to null. Then, AbstractPathSource's getPathIdentifier() will always throw a NPE.

Environment

None

Status

Assignee

Brett Meyer

Reporter

Peter Halicky

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure