[web] Creating a producer from an aspect is a pain cause of the way a new
producer is parametrized
--------------------------------------------------------------------------------------------------
Key: LABS-257
URL: https://issues.apache.org/jira/browse/LABS-257
Project: Labs
Issue Type: Bug
Components: Magma
Affects Versions: Current
Reporter: Simone Gianni
Assignee: Simone Gianni
Fix For: Future
When a new producer is created, an aspect (ParametrizeHtmlProducer) intercepts
the creation an injects a number of fields. To do this, this aspect keeps a
number of stacks, containing handlers, parameters, method names etc..
These stacks are filled when entering a do/handle method, and popped when
exiting. This way, when a new producer is created, last elements in the stack
represent the current call.
This works as long as a producer is not created from an aspect intercepting a
do/handle method. In this case, if the intercepting aspect is executed with a
lower priority, stacks will still contains proper data when the new producer is
created, otherwise the stacks will either contain wrong data or be empty.
Also, this could be a somehow AspectJ bug. In fact, currently there is an
aspect doing this (creating a producer inside an "around" method), and it is
working correctly under java 1.6 while working not correctly under java 1.5, as
if the precedence of the aspects changes between two different runtimes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]