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