Skip to main content

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

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




Back to the top