Hi, If the field is private then you must be on an old version of AspectJ - for the last couple of releases private ITDs like that create private fields in the target. I do recall a bug with annotated ITDs and the annotations not making it through - I just tried it (on 1.6.10) and it works as expected for me. Can you try on a more recent version or AspectJ/AJDT?
Andy On 5 November 2010 09:05, <christian.h...@equifax.com> wrote: > > Maybe this is just not possible, but I am introducing a field on a class > and want it to also have an annotation. > > public aspect ExampleAspect { > > @Embedded > private SomeType TargetClass.introducedField; > > } > > Decompiling shows the field woven, but it is not annotated. The field is > also public, but I suspect that is just the way things work. > > Do I have to separately introduce the annotation using declare on my > introduced field? > > > This message contains information from Equifax Inc. which may be > confidential and privileged. If you are not an intended recipient, please > refrain from any disclosure, copying, distribution or use of this > information and note that such actions are prohibited. If you have received > this transmission in error, please notify by e-mail postmas...@equifax.com > . > > > _______________________________________________ > aspectj-users mailing list > aspectj-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/aspectj-users > >
_______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users