Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320821

Summary: Patch for NPE when using aspect templates with backend generator
Product: [Modeling] M2T Reporter: Axel Guckelsberger <info>
Component: XpandAssignee: Project Inbox <m2t.xpand-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: andre.arnold
Version: unspecified   
Target Milestone: SR2   
Hardware: PC   
OS: Linux   
Whiteboard:

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