Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] inter type declaration

Hi,

I think it is not possible to do the following with AspectJ but maybe I am wrong :

1) I have a java class A which has no fields.
2) I use an aspect to introduce a field called f into A.
3) I can use f in A as if f were hard coded (in the java source) into A.

Is this possible ?
I know it is possible to something similar by providing default implementations for interfaces but that is not my question (interfaces can only have final fields).

Cheers,

Jozsef


Back to the top