Bug 87282 - Compilation error on generic member introduction
Summary: Compilation error on generic member introduction
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.5.0 M3   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-07 11:27 EST by Santi Villalba CLA
Modified: 2005-05-09 03:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Santi Villalba CLA 2005-03-07 11:27:29 EST
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).
Comment 1 Adrian Colyer CLA 2005-03-23 09:54:54 EST
known limitation in aj5m2, will be fixed in aj5m3...
Comment 2 Andrew Clement CLA 2005-05-06 11:29:01 EDT
Fixed under bug 91053 - this is the same problem to do with losing parameterized
type information.

Testcase checked in.  Closing when build available.
Comment 3 Andrew Clement CLA 2005-05-09 03:21:00 EDT
Fix available, see AJ downloads page:

http://eclipse.org/aspectj/downloads.php