[ 
https://issues.apache.org/jira/browse/COCOON3-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703261#action_12703261
 ] 

Jörg Heinicke commented on COCOON3-34:
--------------------------------------

I'm not sure this fixes the class cast in SitemapBuilder$SitemapHandler as seen 
in the log file. There an explicit cast to Sitemap is done:

this.sitemap = (Sitemap) SitemapBuilder.this.createSitemapNode(localName, null);

This won't work with dynamic proxies.

> Attaching an aspect to "org.apache.cocoon.sitemap.node.Sitemap" leads to a 
> ClassCastException
> ---------------------------------------------------------------------------------------------
>
>                 Key: COCOON3-34
>                 URL: https://issues.apache.org/jira/browse/COCOON3-34
>             Project: Cocoon 3
>          Issue Type: Bug
>          Components: cocoon-sitemap
>            Reporter: Andreas Pinter
>            Assignee: Reinhard Poetz
>            Priority: Minor
>         Attachments: cocoon.log
>
>
> I tried to attach an around-aspect for every node: 
> @Around("execution(* invoke(..)) && within(org.apache.cocoon.sitemap.node.*)")
> This led to a ClassCastException for the first sitemap. (see attached logfile)
> After excluding sitemap from my aspect, everything works just fine:
> @Around("execution(* invoke(..)) && within(org.apache.cocoon.sitemap.node.* 
> && !org.apache.cocoon.sitemap.node.Sitemap)")
> Tested with cocoon-sample.

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

Reply via email to