Cross Reference: T6247324.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
T6247324.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
T6247324.java revision 0
0
N/A
/*
0
N/A
* @test /nodynamiccopyright/
0
N/A
* @bug 6247324
0
N/A
* @
compile
/
fail
/
ref
=T6247324.out -XDrawDiagnostics -XDstdout -Xlint -Xlint:-path
T6247324.java
0
N/A
*/
0
N/A
class
Pair
<X,Y> {
0
N/A
private
X x;
0
N/A
private
Y y;
0
N/A
0
N/A
public
Pair
(X x, Y y){
0
N/A
this
.x = x;
0
N/A
this
.y = y;
0
N/A
}
0
N/A
0
N/A
public
X
getX
(){
0
N/A
return
x;
0
N/A
}
0
N/A
@
Seetharam
// Undefined annotation...
0
N/A
public
Y
getY
(){
0
N/A
return
y;
0
N/A
}
0
N/A
}
0
N/A
0
N/A
public
class
T6247324
{
0
N/A
public
void
myMethod
(){
0
N/A
Pair
<
Integer
,
String
>
pair
=
new
Pair
<
Integer
,
String
>(
0
,
"I am not sure"
);
0
N/A
int
intValue
=
pair
.
getX
();
0
N/A
String
strValue
=
pair
.
getY
();
0
N/A
}
0
N/A
}
0
N/A