You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2008/07/14 16:56:32 UTC
[jira] Resolved: (WICKET-1634) ClassName needs conversion from Path
to dotted notation in AutoLinkResolver
[ https://issues.apache.org/jira/browse/WICKET-1634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-1634.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.4-M4
1.3.5
Assignee: Igor Vaynberg
fixed via WICKET-1731
> ClassName needs conversion from Path to dotted notation in AutoLinkResolver
> ---------------------------------------------------------------------------
>
> Key: WICKET-1634
> URL: https://issues.apache.org/jira/browse/WICKET-1634
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 1.4-M1
> Reporter: Roland Huss
> Assignee: Igor Vaynberg
> Fix For: 1.3.5, 1.4-M4
>
>
> Current svn snapshot contains the following code in AutoLinkResolver.newAutoComponent:
> if (clazz != null)
> {
> // Href is relative. Resolve the url given relative to
> // the current page
> className = Packages.absolutePath(clazz, pathInfo.path);
> try
> {
> clazz = defaultClassResolver.resolveClass(className);
> return new AutolinkBookmarkablePageLink(autoId, clazz,
> pathInfo.getPageParameters(), pathInfo.anchor);
> }
> catch (ClassNotFoundException ex)
> {
> log.warn("Did not find corresponding java class: " + className);
> // fall through
> }
> }
> This obviously fails since Packages.absolutePath() return a path whereas the class resolver expects a classname. Simply add the conversion as in the beginning of this method (or even better, extrract this conversion into an utility method)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.