You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Robin Komiwes (JIRA)" <ji...@apache.org> on 2010/03/05 15:50:27 UTC
[jira] Created: (TAP5-1045) Recursion issues when using Match("*")
and injection for advices declaration
Recursion issues when using Match("*") and injection for advices declaration
----------------------------------------------------------------------------
Key: TAP5-1045
URL: https://issues.apache.org/jira/browse/TAP5-1045
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core, tapestry-ioc
Affects Versions: 5.1.0.5
Reporter: Robin Komiwes
Injecting a service (protected by @PreventServiceDecoration) in an advice declaration matching all services seems to produce recursion issues.
Example, this will not work
@Match("*")
public static void adviseSomething(@Inject Dummy dummy, MethodAdviceReceiver receiver)
{
};
However, this will work:
@Match("*")
public static void adviseSomething( MethodAdviceReceiver receiver)
{
};
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-1045) Recursion issues when using
Match("*") and injection for advices declaration
Posted by "Robin Komiwes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846352#action_12846352 ]
Robin Komiwes commented on TAP5-1045:
-------------------------------------
Ok, tried to add "preventDecoration" to AssetObjectProvider. It partially fix the problem because it's now the Alias service which is doing recursion.
> Recursion issues when using Match("*") and injection for advices declaration
> ----------------------------------------------------------------------------
>
> Key: TAP5-1045
> URL: https://issues.apache.org/jira/browse/TAP5-1045
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core, tapestry-ioc
> Affects Versions: 5.1.0.5
> Reporter: Robin Komiwes
> Attachments: errors.txt
>
>
> Injecting a service (protected by @PreventServiceDecoration) in an advice declaration matching all services seems to produce recursion issues.
> Example, this will not work
> @Match("*")
> public static void adviseSomething(@Inject Dummy dummy, MethodAdviceReceiver receiver)
> {
> };
> However, this will work:
> @Match("*")
> public static void adviseSomething( MethodAdviceReceiver receiver)
> {
> };
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-1045) Recursion issues when using
Match("*") and injection for advices declaration
Posted by "Robin Komiwes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846352#action_12846352 ]
Robin Komiwes commented on TAP5-1045:
-------------------------------------
Ok, tried to add "preventDecoration" to AssetObjectProvider. It partially fix the problem because it's now the Alias service which is doing recursion.
> Recursion issues when using Match("*") and injection for advices declaration
> ----------------------------------------------------------------------------
>
> Key: TAP5-1045
> URL: https://issues.apache.org/jira/browse/TAP5-1045
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core, tapestry-ioc
> Affects Versions: 5.1.0.5
> Reporter: Robin Komiwes
> Attachments: errors.txt
>
>
> Injecting a service (protected by @PreventServiceDecoration) in an advice declaration matching all services seems to produce recursion issues.
> Example, this will not work
> @Match("*")
> public static void adviseSomething(@Inject Dummy dummy, MethodAdviceReceiver receiver)
> {
> };
> However, this will work:
> @Match("*")
> public static void adviseSomething( MethodAdviceReceiver receiver)
> {
> };
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-1045) Recursion issues when using Match("*")
and injection for advices declaration
Posted by "Robin Komiwes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robin Komiwes updated TAP5-1045:
--------------------------------
Attachment: errors.txt
PFA recursions errors produced when using injection.
> Recursion issues when using Match("*") and injection for advices declaration
> ----------------------------------------------------------------------------
>
> Key: TAP5-1045
> URL: https://issues.apache.org/jira/browse/TAP5-1045
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core, tapestry-ioc
> Affects Versions: 5.1.0.5
> Reporter: Robin Komiwes
> Attachments: errors.txt
>
>
> Injecting a service (protected by @PreventServiceDecoration) in an advice declaration matching all services seems to produce recursion issues.
> Example, this will not work
> @Match("*")
> public static void adviseSomething(@Inject Dummy dummy, MethodAdviceReceiver receiver)
> {
> };
> However, this will work:
> @Match("*")
> public static void adviseSomething( MethodAdviceReceiver receiver)
> {
> };
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-1045) Recursion issues when using Match("*")
and injection for advices declaration
Posted by "Robin Komiwes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robin Komiwes updated TAP5-1045:
--------------------------------
Attachment: errors.txt
PFA recursions errors produced when using injection.
> Recursion issues when using Match("*") and injection for advices declaration
> ----------------------------------------------------------------------------
>
> Key: TAP5-1045
> URL: https://issues.apache.org/jira/browse/TAP5-1045
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core, tapestry-ioc
> Affects Versions: 5.1.0.5
> Reporter: Robin Komiwes
> Attachments: errors.txt
>
>
> Injecting a service (protected by @PreventServiceDecoration) in an advice declaration matching all services seems to produce recursion issues.
> Example, this will not work
> @Match("*")
> public static void adviseSomething(@Inject Dummy dummy, MethodAdviceReceiver receiver)
> {
> };
> However, this will work:
> @Match("*")
> public static void adviseSomething( MethodAdviceReceiver receiver)
> {
> };
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.