2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / testsuite / libjava.lang / PR7482.java
blob223fea66e365b75f6132bd1b2e42ef7e7715d8ae
1 public class PR7482
3 private interface I { }
4 private static class B { }
5 private static class U extends B implements I { }
6 private static class V extends B implements I { }
8 static I field;
10 private static void g1(Object o)
12 I val;
13 if (o == null)
14 val = new U();
15 else
16 val = new V();
17 field = val;
20 private static I g2(Object o)
22 I val;
23 if (o == null)
24 val = new U();
25 else
26 val = new V();
27 return val;
30 public static void main(String[] args)
32 g1(null);
33 g2(null);