You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Reinhard Poetz (JIRA)" <ji...@apache.org> on 2009/04/27 19:42:30 UTC
[jira] Moved: (COCOON3-34) Attaching an aspect to
"org.apache.cocoon.sitemap.node.Sitemap" leads to a ClassCastException
[ https://issues.apache.org/jira/browse/COCOON3-34?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reinhard Poetz moved COCOON-2256 to COCOON3-34:
-----------------------------------------------
Component/s: (was: - Components: Sitemap)
cocoon-sitemap
Affects Version/s: (was: 2.1.12-dev (Current SVN))
Key: COCOON3-34 (was: COCOON-2256)
Project: Cocoon 3 (was: Cocoon)
> 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
> 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.