Bug 105286 - Tracking what generic ITD stuff is working...
Summary: Tracking what generic ITD stuff is working...
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: All Windows XP
: P3 enhancement (vote)
Target Milestone: 1.5.0RC1   Edit
Assignee: Andrew Clement CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-27 07:26 EDT by Andrew Clement CLA
Modified: 2005-10-28 08:37 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 Andrew Clement CLA 2005-07-27 07:26:54 EDT
 
Comment 1 Andrew Clement CLA 2005-07-27 09:56:12 EDT
This bug can track what is working in HEAD...these all work:

: generic method with multiple uses of the type parameter
aspect X {
  <T extends Number> T Utils.max(T first,T second) {
    if (first.intValue()>second.intValue()) return first; else return second;
  }
}

: generic method, nested use of the type variable in the type param for the method
aspect X {
  static <E> E MathUtils.first(List<E> elements) { return elements.get(0); }
}
Comment 2 Andrew Clement CLA 2005-07-29 09:23:32 EDT
aspect X {
  void Base.simple(List<? extends Super> list) {}
}

aspect X {
  <E> void Base.simple(List<? extends E> list) {}
}

aspect X {
  <E extends Number> void Base.simple(List<? extends E> list) {}
}
Comment 3 Adrian Colyer CLA 2005-10-28 08:37:14 EDT
now closed.