[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Intertype declarations results in too long names
|
- From: Andy Clement <andrew.clement@xxxxxxxxx>
- Date: Mon, 2 Nov 2009 14:12:05 -0800
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=zz9kTtKoQrqRa2MXk2DgLhO0D9TeIEln/Wf3PovTI/U=; b=GYuM2ONWW+q7Uz9SdUN0bcrVF/kjrUkQto/L84QAICT0K5qTEZwA4DZGFXByyaec+z DHV8D3aSXkZzZ7cd1QnqD8rkX5Rf2e3Am0IK2cw5nJve0F0aCinjJ7mlNJpqz8LvmcKv sj37DXK4WfRUXVnx2usA7C0FvQ4PvtHz1v/kU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=g1BXDdHYr3klq7JAH/gec+Bjv3GfJXip2MaWhS8jyyaScyLgglmaLm1jDX14bTXU18 8rNdX6U/qvl+8y8d11uID8A6BP3x8WiEC7fHUV4iFUCLHIof2TMpi/g3feHt/eA2QeG3 68UVcObhkCDDUHcY/NcVzRSEvYWXgxdIOpNZA=
The name for a public intertype declaration is not mangled - can you
use public in your case?
Andy
2009/11/2 Andrew Eisenberg <andrew@xxxxxxxxxxxx>:
> Hi,
>
> The ajc$interField$mypack_mysubpack_MyAspect$id is internal and not
> expected to be directly referenced in the source code. It is only
> needed for the byte code (i.e., you should not be concerned with it).
> All you need to know is that the declaration declares an Integer field
> 'id' on MyClass that is private to the aspect (ie- it is not
> accessible anywhere outside the aspect).
>
> Unless you require knowledge about the byte code, the byte code name
> should not be of concern to you. However, if you do require knowledge
> about the byte code, please explain what that is and perhaps we can
> help you.
>
> --a
>
> On Mon, Nov 2, 2009 at 2:45 PM, db <dbconrado@xxxxxxxxx> wrote:
>> Hi All,
>>
>> I have an intertype declaration like this:
>>
>> private Integer MyClass.id;
>>
>> but, when it was compiled/weaved, this attribute receive the name:
>> ajc$interField$mypack_mysubpack_MyAspect$id.
>> I want MyClass receive an id attribute and not a ajc$...$id attribute.
>> How to do it?
>>
>> Thanks!
>>
>> PS: Sorry for my poor English. It isn't my native language :).
>>
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
>>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>