Cross Reference: T4695415.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
generics
/
T4695415.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
T4695415.java revision 288
0
N/A
/*
0
N/A
* Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
0
N/A
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0
N/A
*
0
N/A
* This code is free software; you can redistribute it
and
/
or
modify it
0
N/A
* under the terms of the GNU General Public License version 2 only, as
0
N/A
* published by the Free Software Foundation.
0
N/A
*
0
N/A
* This code is distributed in the hope that it will be useful, but WITHOUT
0
N/A
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0
N/A
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0
N/A
* version 2 for more details (a copy is included in the LICENSE file that
0
N/A
* accompanied this code).
0
N/A
*
0
N/A
* You should have received a copy of the GNU General Public License version
0
N/A
* 2 along with this work; if not, write to the Free Software Foundation,
0
N/A
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0
N/A
*
0
N/A
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0
N/A
* CA 95054 USA or visit www.sun.com if you need additional information or
0
N/A
* have any questions.
0
N/A
*/
0
N/A
0
N/A
/*
0
N/A
* @test
0
N/A
* @bug 4695415
0
N/A
* @summary generics: bug in type inference when method result used as an argument
0
N/A
* @author gafter
0
N/A
*
288
N/A
* @compile
T4695415.java
0
N/A
*/
0
N/A
0
N/A
class
X<T
extends
Number
> {
0
N/A
static
<T
extends
Number
> X<T> f(X<T> a, X<T> b) {
0
N/A
return
f(f(a, b), b);
0
N/A
}
0
N/A
}