duke@1: /* duke@1: * @test /nodynamiccopyright/ duke@1: * @bug 6247324 jjg@611: * @compile/fail/ref=T6247324.out -XDrawDiagnostics -Xlint -Xlint:-path T6247324.java duke@1: */ duke@1: class Pair { duke@1: private X x; duke@1: private Y y; duke@1: duke@1: public Pair(X x, Y y){ duke@1: this.x = x; duke@1: this.y = y; duke@1: } duke@1: duke@1: public X getX(){ duke@1: return x; duke@1: } duke@1: @Seetharam // Undefined annotation... duke@1: public Y getY(){ duke@1: return y; duke@1: } duke@1: } duke@1: duke@1: public class T6247324{ duke@1: public void myMethod(){ duke@1: Pair pair = new Pair(0, "I am not sure"); duke@1: int intValue = pair.getX(); duke@1: String strValue = pair.getY(); duke@1: } duke@1: }