You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/05/27 19:58:22 UTC
[jira] [Resolved] (WICKET-5182) Incorrect signature of types which
extend Comparable
[ https://issues.apache.org/jira/browse/WICKET-5182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-5182.
-------------------------------------
Resolution: Fixed
Assignee: Martin Grigorov
> Incorrect signature of types which extend Comparable
> ----------------------------------------------------
>
> Key: WICKET-5182
> URL: https://issues.apache.org/jira/browse/WICKET-5182
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.7.0
> Reporter: Oleg Galimov
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 7.0.0
>
>
> AbstractRangeValidator has the following Signature:
> public abstract class AbstractRangeValidator<R extends Comparable<R> & Serializable, V extends Serializable> extends Behavior implements IValidator<V>
> Because of this it cannot be used with DateMidnight as its Comparable implementation is in a base class.
> I think the correct signature should be:
> public abstract class AbstractRangeValidator<R extends Comparable<? super R> & Serializable, V extends Serializable> extends Behavior implements IValidator<V>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira