Foo.java revision 3170:dc017a37aac5
136285Sbrian/*
236285Sbrian * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
336285Sbrian * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
436285Sbrian *
536285Sbrian * This code is free software; you can redistribute it and/or modify it
636285Sbrian * under the terms of the GNU General Public License version 2 only, as
736285Sbrian * published by the Free Software Foundation.
836285Sbrian *
936285Sbrian * This code is distributed in the hope that it will be useful, but WITHOUT
1036285Sbrian * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1136285Sbrian * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1236285Sbrian * version 2 for more details (a copy is included in the LICENSE file that
1336285Sbrian * accompanied this code).
1436285Sbrian *
1536285Sbrian * You should have received a copy of the GNU General Public License version
1636285Sbrian * 2 along with this work; if not, write to the Free Software Foundation,
1736285Sbrian * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1836285Sbrian *
1936285Sbrian * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2036285Sbrian * or visit www.oracle.com if you need additional information or have any
2136285Sbrian * questions.
2236285Sbrian */
2336285Sbrian
2436285Sbrianinterface Foo<X extends Number> {
2536285Sbrian    void m(X x);
2643313Sbrian}
2736285Sbrian
2836285Sbrianclass FooLib {
2936285Sbrian    void m1(Foo<?> uf) { }
3036285Sbrian    void m2(Foo<? extends Object> uf) { }
3136285Sbrian}
3236285Sbrian