1 /* |
1 /* |
2 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 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. |
23 |
23 |
24 // key: compiler.err.name.clash.same.erasure.no.override |
24 // key: compiler.err.name.clash.same.erasure.no.override |
25 |
25 |
26 public class NameClashSameErasureNoOverride<X> { |
26 public class NameClashSameErasureNoOverride<X> { |
27 static class A { |
27 static class A { |
28 static void m(NameClashSameErasureNoOverride<String> l) {} |
28 void m(NameClashSameErasureNoOverride<String> l) {} |
29 } |
29 } |
30 |
30 |
31 static class B extends A { |
31 static class B extends A { |
32 static void m(NameClashSameErasureNoOverride<Integer> l) {} |
32 void m(NameClashSameErasureNoOverride<Integer> l) {} |
33 } |
33 } |
34 } |
34 } |