~ubuntu-branches/ubuntu/natty/aspectj/natty

« back to all changes in this revision

Viewing changes to org.aspectj/modules/tests/java5/generics/itds/BizarroSignatures.aj

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2009-10-04 16:37:23 UTC
  • mfrom: (1.1.3 upstream) (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091004163723-ck4y7j7fhjxskkie
Tags: 1.6.6+dfsg-1
* New upstream release.
  - Update 02_use_gjdoc.diff patch
* Update my email address

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import java.util.*;
2
 
 
3
 
class Victim {}
4
 
 
5
 
public class BizarroSignatures {
6
 
  public static void main(String []argv) {
7
 
    Victim v = new Victim();
8
 
    
9
 
    Map<Double,Double> m = new HashMap<Double,Double>();
10
 
    v.a(m);
11
 
    
12
 
    List<A> as = new ArrayList<A>();
13
 
    v.b(as);
14
 
    v.c(as);
15
 
 
16
 
    //v.c(as);
17
 
 
18
 
  }
19
 
 
20
 
}
21
 
 
22
 
class A implements Comparable<A> { 
23
 
  public int compareTo(A a) { return 0; }
24
 
}
25
 
 
26
 
aspect X { 
27
 
 
28
 
  public void Victim.a(Map<?,? extends Number> map) {}
29
 
 
30
 
  public <T extends Object & Comparable<? super T>> 
31
 
    void Victim.b(List<T> l) {}
32
 
 
33
 
  public <P extends Object & Comparable<? super P>> 
34
 
    void Victim.c(List<P> col) {};//return null;}
35
 
  
36
 
//  public <T extends Comparable<? super Number>> 
37
 
//    T Victim.d(Collection<T> col) {return null;}
38
 
//
39
 
//  public <T extends Comparable<T>> 
40
 
//    T Victim.e(Collection<T> col) {return null;}
41
 
//
42
 
//  public <X> 
43
 
//    X Victim.f(Collection<X> x) {return null;}
44
 
//
45
 
//  public void Victim.g(List<List<List<List<List<? extends List>>>>> wtf) {}
46
 
// 
47
 
//  public <T> 
48
 
//    void Victim.h(List <T> a,List<? extends T> b) {}
49
 
//
50
 
//  public <T extends Number> 
51
 
//    void Victim.i(Map<T,? super Number> n) {}
52
 
 
53
 
//  public <T> 
54
 
//    void Victim.j(T[] ts,Collection<T> c) {}
55
 
}