Wed, 08 Oct 2014 12:38:55 -0700
Added tag jdk8u40-b09 for changeset 8bb38a350722
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 7151070 |
aoqi@0 | 4 | * @summary NullPointerException in Resolve.isAccessible |
aoqi@0 | 5 | * @compile/fail/ref=T7151070.out -XDrawDiagnostics T7151070.java |
aoqi@0 | 6 | */ |
aoqi@0 | 7 | |
aoqi@0 | 8 | class T7151070a { |
aoqi@0 | 9 | private static class PrivateCls { } |
aoqi@0 | 10 | public static class PublicCls extends PrivateCls { } |
aoqi@0 | 11 | |
aoqi@0 | 12 | public void m(PrivateCls p) { } |
aoqi@0 | 13 | } |
aoqi@0 | 14 | |
aoqi@0 | 15 | class T7151070b { |
aoqi@0 | 16 | public void test(Test<T7151070a.PublicCls> obj, T7151070a outer) { |
aoqi@0 | 17 | outer.m(obj.get()); |
aoqi@0 | 18 | } |
aoqi@0 | 19 | |
aoqi@0 | 20 | public static class Test<T> { |
aoqi@0 | 21 | public T get() { |
aoqi@0 | 22 | return null; |
aoqi@0 | 23 | } |
aoqi@0 | 24 | } |
aoqi@0 | 25 | } |