T7101822A.java revision 2739:9d2192f36e53
1287111Smarcel/*
2287111Smarcel * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3287111Smarcel * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4287111Smarcel *
5287111Smarcel * This code is free software; you can redistribute it and/or modify it
6287111Smarcel * under the terms of the GNU General Public License version 2 only, as
7287111Smarcel * published by the Free Software Foundation.
8287111Smarcel *
9287111Smarcel * This code is distributed in the hope that it will be useful, but WITHOUT
10287111Smarcel * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11287111Smarcel * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12287111Smarcel * version 2 for more details (a copy is included in the LICENSE file that
13287111Smarcel * accompanied this code).
14287111Smarcel *
15287111Smarcel * You should have received a copy of the GNU General Public License version
16287111Smarcel * 2 along with this work; if not, write to the Free Software Foundation,
17287111Smarcel * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18287111Smarcel *
19287111Smarcel * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20287111Smarcel * or visit www.oracle.com if you need additional information or have any
21287111Smarcel * questions.
22287111Smarcel */
23287111Smarcel
24287111Smarcel/**
25287111Smarcel * @test
26287111Smarcel * @bug 7101822
27287111Smarcel * @summary Verify that imports are declarations are processed in the correct order.
28287111Smarcel * @compile T7101822A.java T7101822Z.java
29287111Smarcel */
30287111Smarcelpackage a;
31287111Smarcel
32287111Smarcelimport a.T7101822A.B.C;
33287111Smarcelimport z.T7101822Z;
34287111Smarcel
35287111Smarcelpublic class T7101822A {
36287111Smarcel
37287111Smarcel    class B extends T7101822Z {
38287111Smarcel
39287111Smarcel        class C {
40287111Smarcel        }
41287111Smarcel    }
42287111Smarcel
43287111Smarcel    class D {
44287111Smarcel
45287111Smarcel        Class foo() {
46287111Smarcel            return C.class;
47287111Smarcel        }
48287111Smarcel    }
49287111Smarcel}
50287111Smarcel