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

Andrea Del Bene reopened WICKET-6222:
-------------------------------------

> renderHead not called with anonymous inner Border class
> -------------------------------------------------------
>
>                 Key: WICKET-6222
>                 URL: https://issues.apache.org/jira/browse/WICKET-6222
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 8.0.0-M1, 7.4.0
>            Reporter: Bas Huisman
>            Assignee: Andrea Del Bene
>              Labels: easyfix
>             Fix For: 8.0.0-M2, 7.5.0
>
>
> Commit https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=8c43b38 
> introduced a bug that renderHead is not called on children if a Border is an 
> nonymous inner class.
> line Border.java:679 the statement
> {{containerClass.equals(getClass())}}
> returns false when containerClass is an anonymous inner class.
> fix:
> If the line:
> {{boolean isBorderBodyTag = containerClass == null || 
> containerClass.equals(getClass());}}
> is changed to:
> {{boolean isBorderBodyTag = containerClass == null || 
> containerClass.isAssignableFrom(getClass());}}
> It works again, but I don't trust myself with this fix.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to