Add an example which shows the usage of constraints on generic types

Description

There seems to be no example in the spec which shows the usage of constraints on generic types:

j.l.Number can be resolved for the type parameter V here, thus the @Max constraints is legitimate. Whereas V can only be resolved to j.l.Object in the following example, rendering the constraint illegal:

A TCK test may be required for this as well, I couldn't find one.

Environment

None

Assignee

Unassigned

Reporter

Gunnar Morling

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Minor
Configure