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 2011/04/06 20:17:05 UTC

[jira] [Resolved] (WICKET-3600) org/apache/wicket/util/lang/WicketObjects resolveClass resolved not used

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

Martin Grigorov resolved WICKET-3600.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-RC4
         Assignee: Martin Grigorov

Fixed with r1089556.
Thanks!

> org/apache/wicket/util/lang/WicketObjects resolveClass resolved  not used
> -------------------------------------------------------------------------
>
>                 Key: WICKET-3600
>                 URL: https://issues.apache.org/jira/browse/WICKET-3600
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.5-RC3
>         Environment: all
>            Reporter: Richard Emberson
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 1.5-RC4
>
>
> The latest version of the resolveClass method has code that gets a resolved class, but then does not
> use it:
>   public static <T> Class<T> resolveClass(final String className)
>   {
>     Class<T> resolved = null;
>     try
>     {
>       if (Application.exists())
>       {
> // BUG: this resolved value is never used
>         resolved = (Class<T>)Application.get()
>           .getApplicationSettings()
>           .getClassResolver()
>           .resolveClass(className);
>       }                 
>       resolved = (Class<T>)Class.forName(className, false, Thread.currentThread()     
>         .getContextClassLoader());
>     } 
>     catch (ClassNotFoundException cnfx)
>     {
>       log.warn("Could not resolve class [" + className + "]", cnfx);
>     }
>     return resolved;
>   }     

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira