Won't Fix
Details
Assignee
UnassignedUnassignedReporter
Gunnar MorlingGunnar MorlingParticipants
Gunnar MorlingComponents
Affects versions
Priority
Minor
Details
Details
Assignee
Unassigned
UnassignedReporter
Gunnar Morling
Gunnar MorlingParticipants
Gunnar Morling
Components
Affects versions
Priority
Created July 25, 2013 at 7:17 AM
Updated December 3, 2024 at 9:26 AM
Resolved September 19, 2016 at 2:03 PM
Currently the constraint type needs to be specified twice when using
GenericConstraintDef
:This could be avoided by providing a static factory method which leverages type inference:
Or we provide a parameterless constructor used by anonymous subclasses and retrieve the value of the type parameter internally:
The latter would break compatability though if we want to enforce subclassing by making
GenericConstraintDef
an anonymous class.