Bug 328121 - missing relationship map entry for declare @method
Summary: missing relationship map entry for declare @method
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 1.6.12   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-19 08:29 EDT by Andrew Clement CLA
Modified: 2011-04-28 16:02 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Clement CLA 2010-10-19 08:29:44 EDT
There is no entry in the relmap for this program:

package TestRequirements;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;


@Retention(RetentionPolicy.RUNTIME)
@interface AnnotatedMethod {}

@Retention(RetentionPolicy.RUNTIME)
@interface NewAnnotatedMethod {
	boolean newValue();
}

aspect X {
	declare @method: !@AnnotatedMethod * TestRequirements.*(..) : @NewAnnotatedMethod(newValue = true);
}

class TestRequirements {
	@AnnotatedMethod
	public void dontMatchMe() {}
	
	public void matchMe() {}
}
Comment 1 Andrew Clement CLA 2011-04-28 16:02:49 EDT
The problem here is that the typename is the same as the package name.  Rather unusual!

fixed.