click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Schellink (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CLK-736) function getPageClassList has incorrect return type
Date Mon, 06 Dec 2010 09:57:12 GMT

     [ https://issues.apache.org/jira/browse/CLK-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink updated CLK-736:
------------------------------

    Affects Version/s: 2.3.0-M1
        Fix Version/s: 2.3.0-RC1

Thanks, I've moved it under Release Candidate 1

> function getPageClassList has incorrect return type
> ---------------------------------------------------
>
>                 Key: CLK-736
>                 URL: https://issues.apache.org/jira/browse/CLK-736
>             Project: Click
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.3.0-M1
>            Reporter: Leszek Piotrowicz
>            Priority: Minor
>             Fix For: 2.3.0-RC1
>
>
> function getPageClassList from class ConfigService
> has an incorrect signature
> public List<? extends Page> getPageClassList();
> while it should be
> public List<Class<? extends Page>> getPageClassList();
> This function when used causes sometimes ClassCastException. However this is not repeatable.
I assume that javac compiler generates code which try to cast to incorrect generic type.
> Loop construction like
> for(Class<? extends Page> clazz : configService.getPageClassList()) {...} is rejected
by java compiler
> Please correct the signature in ConfigService and its implementation in XmlConfigService

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message