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

Bug 327282

Summary: [reconciling] Reconcile problems when using static inner aspects
Product: [Tools] AJDT Reporter: Andrew Eisenberg <andrew.eisenberg>
Component: CoreAssignee: AJDT-inbox <AJDT-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1.0   
Target Milestone: 2.1.2   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Andrew Eisenberg CLA 2010-10-07 16:25:50 EDT
From the mailing list.  Our handling of static inner aspects is weak and therefore this problem is occurring:

==========================
I just came across what seems to be a bug. It affects the following code:

public class A {
	void foo() {		
	}
	private static aspect B {
		before() : execution(* *(..)) {
		}
	}
}

Two warnings are generated:
In the aspect header: The type A.B is never used locally
In the advice header: The method b() from the type A.B is never used locally
I'm using:
Eclipse 3.6.1, Build id: M20100909-0800
AJDT 2.1.1.e36x-20101006-1400 (with AspectJ version: 1.6.10.20101003133000)

What do you think?

Manuel
==========================