persistence
persistence copied to clipboard
incorrect generic signature of From.join(String)
For example,
Form<Z,X>
<Y> Join<X,Y> join(SingularAttribute<? superX,Y> attribute)
<X,Y> Join<X,Y> join(String attributeName);
For the 2nd method, why does the method <X>
hide class <X>
. It is not clear from javadoc.
Need to explain why the join's source type is not the target type of the From.
- Issue Imported From: https://github.com/javaee/jpa-spec/issues/158
- Original Issue Raised By:@javaone199
- Original Issue Assigned To: Unassigned
This looks like a good candidate for a community/end-user contribution. I would suggest marking it with "good first issue" and/or "help wanted". That will help facilitate recruiting people to contribute. I would honestly also mark this low priority.
Reza Rahman Jakarta EE Ambassador, Author, Blogger, Speaker
Please note views expressed here are my own as an individual community member and do not reflect the views of my employer.
This is a bug, the method <X,Y> Join<X,Y> join(String attributeName);
should be <Y> Join<X,Y> join(String attributeName);
instead.
Unfortunately such change is backward incompatible, so unless there is a will or support from other implementations to fix this in a minor release, this will have to wait till major one.
This is a bug, the method
<X,Y> Join<X,Y> join(String attributeName);
should be<Y> Join<X,Y> join(String attributeName);
instead.
I agree. We should fix this in the next major version.