-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
questionFurther information is requestedFurther information is requested
Description
The class Wildcard reports Object as bound when it has no bounds; this creates inconsistencies and renders some predicates useless:
hasTypeBound()(inherited fromBoundedType) apparently always holdshasTypeBound()is inconsistent withTypeVariable.hasTypeBound()which only holds for explicit bounds- It is inconistent with
WildcardTypeAccesswhich only considers explicit bounds (though it could not report the implicit bound anyways since it is not anExpr)
Therefore it would be good to change Wildcard in the following ways:
hasTypeBound()should only hold if an explicit bound is presentgetUpperBound()should only have an explicit bound as result (currently it has the implicitObjectbound as result)
hasUpperBound() can probably remain as is.
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested