Type argument constraints for Optional are ignored for method parameters and return value if there are no other constraints

Description

If the only constraints of a method are type argument constraints on the parameters or the return value, the constraints are ignored.

This is due to the fact that the isConstrained() method in the various AbstractConstrainedElement implementations does not take into account the type argument constraints.

Environment

None

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major
Configure