Cross Reference: T7062745neg.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
generics
/
rawOverride
/
7062745
/
T7062745neg.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
1049
N/A
/*
1049
N/A
* @test /nodynamiccopyright/
1049
N/A
* @bug 7062745
1049
N/A
* @summary Regression: difference in overload resolution when two methods are maximally specific
1049
N/A
* @
compile
/
fail
/
ref
=T7062745neg.out -XDrawDiagnostics
T7062745neg.java
1049
N/A
*/
1049
N/A
1049
N/A
import
java
.
util
.*;
1049
N/A
1049
N/A
class
T7062745neg
{
1049
N/A
interface
A {
List
<
Number
>
getList
(); }
1049
N/A
interface
B {
ArrayList
getList
(); }
1049
N/A
interface
AB
extends
A, B {}
1049
N/A
1049
N/A
void
test
(
AB
ab
) {
1049
N/A
Number
n =
ab
.
getList
().
get
(
1
);
1049
N/A
}
1049
N/A
}