Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320821 - Patch for NPE when using aspect templates with backend generator
Summary: Patch for NPE when using aspect templates with backend generator
Status: CLOSED FIXED
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-24 15:01 EDT by Axel Guckelsberger CLA
Modified: 2013-02-21 08:14 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Guckelsberger CLA 2010-07-24 15:01:03 EDT
Build Identifier: 20100617-1415

I had problems with running a workflow with backend classes as soon as I enabled an advice with aspect templates.
After some debugging time here is what I found out: in the org.eclipse.xtend.backend.aop.ExecutionPointcut class the method matchesName(QualifiedName functionName) failed because the _namePattern was null. Thus the call of its matcher method could not work.

Patch: add the following lines before the last return statement.


        if (_namePattern == null) {
            return false;
        }

This works for me, don't know whether it is the best solution though.

Kindly regards,
Axel


Reproducible: Always
Comment 1 André Arnold CLA 2011-05-21 07:34:38 EDT
Matching did not work with function that have qualified names. Now the pattern is matched to the full qualified name.
Comment 2 Karsten Thoms CLA 2013-02-21 08:14:06 EST
Bug resolved before Xpand 1.2 release date => Closing