Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Query about compiler warning

Hi
My program consists of one 'test' class and a
'some_aspect'.
-------------------------------------------------------
class test {
	static public void main(String s[]) {}
}

aspect some_aspect {
  void around() :!within(some_aspect) &&
	         cflow(call(void test.abcdwxyz())) {
  }
}
-------------------------------------------------------
while compiling the above code, AspectJ Compiler 1.1.1
produces warnings:

test.java:5 around on initialization not supported
(compiler limitation)
test.java:1 around on initialization not supported
(compiler limitation)
test.java:5 around on pre-initialization not supported
(compiler limitation)
test.java:1 around on pre-initialization not supported
(compiler limitation)

Why is the compiler complaining while the method
'abcdwxyz' does not appear at all in the 'test' class?
Can some one clarify why around + cflow behave that
way?

Thanks



__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com


Back to the top