[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[aspectj-users] Issue with incremental compilation, annotation and pointcuts
- From: Julien HENRY <henryju@xxxxxxxx>
- Date: Wed, 20 Oct 2010 16:12:04 +0100 (BST)
- Delivered-to: firstname.lastname@example.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1287587524; bh=94IRvV4C82WtRK6NA1dL3ViR5ILfv/JPlVxxPNsFF8I=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Yo2SzRT+UAwuQAbzDDMsoDek1EGg00EThr5aNxesE8AULNnu6uHaeqROZoSL5/U+mZ50gjrwEbvj4w1hX1s/mIFSRintImSOF2ihU8OjbklGFtb/N0pnNlJ3YqjxqmsYJvY+ydQASlqXhhjHnXkS+1fYokeihbrkrrX5Vvg75iM=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Hs3PJ0hSk7TSbwFkB0oienXkKUk4JdtNryWjpL7m1GFBde7zQ5WWANwHxrsE9WV2TzcLnO6/KvQIrxzlgrVZJ4i/fulg1T2aiTjsBuR28KnI1dfjwuZ+REKoT2mEr1zSSzkqPxteGfei+mFHlX9wKLtVgIRWUn2RZOWEQdo06U4=;
I have reported an issue on the forum  and I was requested to tell it here
We are using Maven, Eclipse, M2Eclipse, AJDT and M2Eclipse-ajdt.
We have developed a JAR library that contains an Aspect (java aspect using
@Aspect). The pointcut of this aspect tell the aspect should apply to all
methods with @ApplyAspect custom annotation.
Now we are developing a project that depends on the aspect library. AJDT
configuration is automatically done by m2eclipse-ajdt.
In this project we wrote some classes and methods but initially without the
@ApplyAspect annotation. The project compiled fine, then we decided to add the
annotations (adding annotation was the only change). So we discovered that the
aspect was not applied until we did a project->clean.
My guess is that adding annotation produce an incremental compilation that is
not detected by AJDT. Cleaning the project force a full compilation so this time
AJDT "see" the annotation and apply the aspect.
Do you confirm this is a bug? Should I open an entry in bugzilla?