equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
37 MyList<? extends @WldA MyList<? super @WldB("m") String>> complex() { return null; } |
37 MyList<? extends @WldA MyList<? super @WldB("m") String>> complex() { return null; } |
38 } |
38 } |
39 |
39 |
40 class BoundWithValue { |
40 class BoundWithValue { |
41 void wcExtends(MyList<? extends @WldB("m") String> l) { } |
41 void wcExtends(MyList<? extends @WldB("m") String> l) { } |
42 void wcSuper(MyList<? super @WldB(value="m") String> l) { } |
42 void wcSuper(MyList<? super @WldB("m") String> l) { } |
43 |
43 |
44 MyList<? extends @WldB("m") String> returnWcExtends() { return null; } |
44 MyList<? extends @WldB("m") String> returnWcExtends() { return null; } |
45 MyList<? super @WldB(value="m") String> returnWcSuper() { return null; } |
45 MyList<? super @WldB("m") String> returnWcSuper() { return null; } |
46 MyList<? extends @WldB("m") MyList<? super @WldB("m") String>> complex() { return null; } |
46 MyList<? extends @WldB("m") MyList<? super @WldB("m") String>> complex() { return null; } |
47 } |
47 } |
48 |
48 |
49 class SelfTest { |
49 class SelfTest { |
50 void wcExtends(MyList<@WldA ?> l) { } |
50 void wcExtends(MyList<@WldA ?> l) { } |
55 MyList<@WldA ? extends @WldA MyList<@WldB("m") ?>> complex() { return null; } |
55 MyList<@WldA ? extends @WldA MyList<@WldB("m") ?>> complex() { return null; } |
56 } |
56 } |
57 |
57 |
58 class SelfWithValue { |
58 class SelfWithValue { |
59 void wcExtends(MyList<@WldB("m") ?> l) { } |
59 void wcExtends(MyList<@WldB("m") ?> l) { } |
60 void wcSuper(MyList<@WldB(value="m") ?> l) { } |
60 void wcSuper(MyList<@WldB("m") ?> l) { } |
61 |
61 |
62 MyList<@WldB("m") ?> returnWcExtends() { return null; } |
62 MyList<@WldB("m") ?> returnWcExtends() { return null; } |
63 MyList<@WldB(value="m") ?> returnWcSuper() { return null; } |
63 MyList<@WldB("m") ?> returnWcSuper() { return null; } |
64 MyList<@WldB("m") ? extends MyList<@WldB("m") ? super String>> complex() { return null; } |
64 MyList<@WldB("m") ? extends MyList<@WldB("m") ? super String>> complex() { return null; } |
65 } |
65 } |
66 |
66 |
67 class MyList<K> { } |
67 class MyList<K> { } |
68 |
68 |