blob: a6a07fda796b571d3eaf5c06c8526d77a7a3d656 [file] [log] [blame]
Aart Bikc2bc2652016-05-23 14:58:49 -07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Aart Bikc2bc2652016-05-23 14:58:49 -070017public class Main {
18
Aart Bik14154132016-06-02 17:53:58 -070019 public static final String staticFinalField = null;
20
21 private static String staticPrivateField = null;
22
Aart Bik31883642016-06-06 15:02:44 -070023 private int privateField = 0;
24
Aart Bik14154132016-06-02 17:53:58 -070025 private static void test(String name) throws Exception {
26 try {
27 Class<?> a = Class.forName(name);
28 a.newInstance();
29 } catch (java.lang.LinkageError e) {
30 System.out.println("passed " + name);
31 }
32 }
Aart Bikc2bc2652016-05-23 14:58:49 -070033
34 public static void main(String[] args) throws Exception {
Aart Bik14154132016-06-02 17:53:58 -070035 test("A");
36 test("B");
37 test("C");
Aart Bik31883642016-06-06 15:02:44 -070038 test("D");
Aart Bikc2bc2652016-05-23 14:58:49 -070039 }
40}