Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] staticinitializer

This is a good question for aspectj-users@xxxxxxxxxxx

Wes

Jake Whitehill wrote:
> 
> Hi,
> 
> I'm trying to implement the following:
> 
> I have three classes A, B, and C. In all three classes the static variable
> x appears. I want to use advice to write static-initializer code for A, B,
> and C which initializes the value of x to some class-dependent value. For
> instance, I'd really like to have:
> 
> A.x = "A", B.x = "B", and C.x = "C"
> 
> But I don't know how to refer to the actual class being initialized from
> within the static initializer.
> 
> Any suggestions?
> 
> Thanks
> Jake
> 
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-dev


Back to the top