| Summary: | Stack Overflow when using advices instead of advice | ||
|---|---|---|---|
| Product: | [Modeling] M2T | Reporter: | Volker Wegert <eclipse> |
| Component: | Xpand | Assignee: | Project Inbox <m2t.xpand-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | btickets, karsten.thoms |
| Version: | unspecified | Flags: | karsten.thoms:
helios+
|
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
This one was fixed on 2010-10-06
The implementation was changed to
public void addAdvices(String advice) {
addAdvice(advice);
}
Bug resolved before Xpand 1.2 release date => Closing |
Build Identifier: 20100617-1415 Note: This issue affects both Xpand and Xtend. The documentation for both generator classes state that AOP advices have to be added using the syntax <advices value="my::Advices,my::Advices2"/>. This leads to an endless recursion because AbstractExpressionsUsingWorkflowComponent contains the following code: public void addAdvices(String advice) { addAdvices(advice); } I assume that the method was intended to call addAdvice() instead (singular form). Changing the workflow file to <advice value="my::Advices,my::Advices2"/> fixes the issue for me, but I'd say that either the recursion should be fixed or the documentation should be updated. Reproducible: Always