Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325702 - Stack Overflow when using advices instead of advice
Summary: Stack Overflow when using advices instead of advice
Status: CLOSED FIXED
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-19 13:49 EDT by Volker Wegert CLA
Modified: 2013-02-21 08:12 EST (History)
2 users (show)

See Also:
karsten.thoms: helios+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Wegert CLA 2010-09-19 13:49:10 EDT
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
Comment 1 Karsten Thoms CLA 2011-08-23 15:23:15 EDT
This one was fixed on 2010-10-06

The implementation was changed to
	public void addAdvices(String advice) {
		addAdvice(advice);
	}
Comment 2 Karsten Thoms CLA 2013-02-21 08:12:26 EST
Bug resolved before Xpand 1.2 release date => Closing