[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Declaring final inter-type fields/methods/etc

Is there a particular reason why it is legal to do the following:

aspect InterTypeDeclarer {
 public static final int MyClass.NEW_VARIABLE = 1;
}

yet, the <final> tag is ignored?

That is, a new variable is created in MyClass, however, it is defined as public, and static, but not final.

If this is not allowed, or supported, then why is it not a compiler error or warning.

Thanks!

--
Keven Ring               | "Oh no,  Not Again..."
The MITRE Corporation    |   Bowl of Petunias -
7515 Colshire Drive      |   The Hitchhikers Guide to the Galaxy
McLean VA 22102-7508     |
PH: (703)883-7026        |