Community
Participate
Working Groups
Hi, I have converted an existing java project to have aspectj capability. In a class which has defined a verify() method I cannot call a statically imported verify(Object) method, which is shown as a compiler error (The method verify() in the type XXXTest is not applicable for the arguments (YYY)). Fully qualifying the static method ( i.e. EasyMock.verify(...) ) did fix the error.
Created attachment 48879 [details] The error reported when the static method is not detected.
Please could you attach a testcase. Thanks.
Created attachment 49390 [details] Sample project with defect Please check defects.StaticImportFailure
Thanks for the testcase. I can reproduce this on Linux and Windows. As the 3.2 Eclipse Java compiler handles this ok, I suspect this is another case that will be fixed by upgrading the AspectJ compiler.
hmm, i seem to get an error on that call to perform in a standard java project on eclipse 3.3.
I think it's the same issue as in bug #159543 , which is also reported by me, so not an AJDT defect.
Closing as per bug 159543 was closed.