Behavior of PointcutElement.getSource() is very strange [message #590928] |
Thu, 17 November 2005 06:19 |
James Gan Messages: 27 Registered: July 2009 |
Junior Member |
|
|
Hi, all
Occasionally, I found the behavior of PointcutElement.getSource() is
very strange. It doesn't return the full source of pointcut expression,
instead, it just returns head of the expression following many blank
space. For example, the resource is:
public pointcut pt3(): execution(public String main.Experiment*.toString())
||execution(public static void main.Hello*.main(String[]))
||execution(public int main.Hello*.testfieldset())
||execution(public void test.pack.Apple*.hello())
||execution(public void test.pack.Apple*.Apple(int))
||execution(public void test.pack.ITestInterface*.methodininterface())
||execution(public void test.pack.GoodApple*.hello());
But the getSource() function will return something as follows:
public pointcut pt3()
;
Is this a bug?
James Gan
|
|
|
Powered by
FUDForum. Page generated in 0.20530 seconds