[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-dev] Declaring final inter-type fields/methods/etc
|
- From: Keven Ring <keven@xxxxxxxxx>
- Date: Thu, 02 Sep 2004 09:55:50 -0400
- Delivered-to: aspectj-dev@eclipse.org
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114
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 |