Bug 105286

Summary: Tracking what generic ITD stuff is working...
Product: [Tools] AspectJ Reporter: Andrew Clement <aclement>
Component: CompilerAssignee: Andrew Clement <aclement>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: DEVELOPMENT   
Target Milestone: 1.5.0RC1   
Hardware: All   
OS: Windows XP   
Whiteboard:

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.