Community
Participate
Working Groups
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); } }
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) {} }
now closed.