commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <simonetrip...@apache.org>
Subject Re: [Sandbox][DIgester3] Help needed for generics
Date Fri, 25 Feb 2011 08:02:46 GMT
just changed the method signature, fixed :P
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Thu, Feb 24, 2011 at 9:56 PM, Simone Tripodi
<simonetripodi@apache.org> wrote:
> Hi all guys,
> I need a suggestion from you about a compilation problem, ignored by
> Eclipse by reported by javac:
>
> In the
>
>    org.apache.commons.digester3.rulesbinder.FactoryCreateBuilder
>
> interface I defined a method
>
>    <T, F extends ObjectCreationFactory<T>> FactoryCreateBuilder
> ofType(Class<F> type);
>
> invoked in
>
>    org.apache.commons.digester3.annotations.handlers.FactoryCreateHandler#handle(FactoryCreate,Class<?>,RulesBinder)
>
> where ofType() argument is of type
>
>    Class<? extends ObjectCreationFactory<?>>
>
> when launching `mvn clean test`, javac complains the following
>
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /XXX/commons-digester3/src/main/java/org/apache/commons/digester3/annotations/handlers/FactoryCreateHandler.java:[41,19]
> cannot find symbol
> symbol  : method ofType(java.lang.Class<capture#286 of ? extends
> org.apache.commons.digester3.spi.ObjectCreationFactory<?>>)
> location: interface
> org.apache.commons.digester3.rulesbinder.FactoryCreateBuilder
>
> [INFO] 1error
>
> Can you help me please? Every kind of help would be more than
> appreciated, feel free to apply the fix if you want :P
> Many thanks in advance, have a nice day!
> Simo
>
> http://people.apache.org/~simonetripodi/
> http://www.99soft.org/
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message