You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Oleg Galimov (JIRA)" <ji...@apache.org> on 2013/05/07 11:55:15 UTC

[jira] [Created] (WICKET-5182) Incorrect signature of AbstractRangeValidator

Oleg Galimov created WICKET-5182:
------------------------------------

             Summary: Incorrect signature of AbstractRangeValidator
                 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
            Priority: Minor


AbstractRangeValidator has the following Signature:
{code:java}
public abstract class AbstractRangeValidator<R extends Comparable<R> & Serializable, V extends Serializable> extends Behavior implements IValidator<V>
{code}

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:
{code:java}
public abstract class AbstractRangeValidator<R extends Comparable<{html}<b>? super</b>{html} R> & Serializable, V extends Serializable> extends Behavior implements IValidator<V>
{code}



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