Bug 356594

Summary: Enhance "declare @*" to take multiple annotations instead of only one
Product: [Tools] AspectJ Reporter: Matthew Adams <matthew>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Matthew Adams CLA 2011-09-02 09:31:19 EDT
Build Identifier: 1.6.11

Instead of:

public aspect PersistableAspect {

    declare @type:
	(@Persistable *):
	@Entity;
	
    declare @type:
	(@Persistable *):
	@Access(AccessType.FIELD);
}

This would be nice:

public aspect PersistableAspect {

    declare @type:
	(@Persistable *):
	@Entity, @Access(AccessType.FIELD);
}

Removes code duplication.


Reproducible: Always
Comment 1 Matthew Adams CLA 2011-09-02 09:39:06 EDT
On second thought, scratch comma separation.  Just go with whitespace separation, in the same way that annotations currently do.

public aspect PersistableAspect {

    declare @type:
    (@Persistable *):
    @Entity
    @Access(AccessType.FIELD);
}