# 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.

None

Unassigned

Gunnar Morling

None

None

None

None

None

None

None

None

Minor
Configure