test/tools/javac/NonAmbiguousField/two/Child2.java

changeset 1775
08daea43a7f8
parent 554
9d9f26857129
child 2525
2eb010b6cb22
equal deleted inserted replaced
1774:37295244f534 1775:08daea43a7f8
1 /* 1 /*
2 * Copyright (c) 1998, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1998, 2013, 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.
26 interface I { 26 interface I {
27 int i = 11; 27 int i = 11;
28 } 28 }
29 29
30 public class Child2 extends one.Parent2 implements I { 30 public class Child2 extends one.Parent2 implements I {
31 class inner { 31 void method() {
32 void method() { 32 System.out.println(i);
33 System.out.println(i);
34 }
35 } 33 }
36 } 34 }

mercurial