jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 6247324
4* @compile/fail/ref=T6247324.out -XDrawDiagnostics -Xlint -Xlint:-path T6247324.java
5*/
6class Pair<X,Y> {
7private X x;
8private Y y;
9
10public Pair(X x, Y y){
11this.x = x;
12this.y = y;
13}
14
15public X getX(){
16return x;
17}
18@Seetharam // Undefined annotation...
19public Y getY(){
20return y;
21}
22}
23
24public class T6247324{
25public void myMethod(){
26Pair<Integer, String> pair = new Pair<Integer, String>(0, "I am not sure");
27int intValue = pair.getX();
28String strValue = pair.getY();
29}
30}
31