Community
Participate
Working Groups
The compiler aborts with the following introduction code: aspect introductionToA{ private ArrayList<B> A.m_Array = new ArrayList<B>(); public void A.addB(B tmp){ m_Array.add(tmp); } } The error message is "[error] The method add(E) in the type ArrayList<E> is not applicable for the arguments (B) m_Array.add(tmp)" Compiling with AspectJ Development version (2005/02/18).
known limitation in aj5m2, will be fixed in aj5m3...
Fixed under bug 91053 - this is the same problem to do with losing parameterized type information. Testcase checked in. Closing when build available.
Fix available, see AJ downloads page: http://eclipse.org/aspectj/downloads.php