1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements.  See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License.  You may obtain a copy of the License at
8 *
9 *     http://www.apache.org/licenses/LICENSE-2.0
10 *
11 *  Unless required by applicable law or agreed to in writing, software
12 *  distributed under the License is distributed on an "AS IS" BASIS,
13 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 *
15 *  See the License for the specific language governing permissions and
16 *  limitations under the License.
17 */
18
19/**
20 * @author Anatoly F. Bondarenko
21 */
22
23/**
24 * Created on 21.02.2005
25 */
26package org.apache.harmony.jpda.tests.jdwp.ReferenceType;
27
28import org.apache.harmony.jpda.tests.share.JPDADebuggeeSynchronizer;
29import org.apache.harmony.jpda.tests.share.SyncDebuggee;
30
31public class NestedTypesDebuggee extends SyncDebuggee {
32
33    static interface StatInterf_1 {
34        static interface StatInterf_1_1 {
35        }
36    }
37
38    static class StatClass_1 {
39        static class StatClass_1_1 {
40        }
41        StatClass_1_1 statClass_1_2_obj = new StatClass_1_1();
42    }
43
44    class NonStatClass_1 implements StatInterf_1 {
45        class NonStatClass_1_1 implements StatInterf_1_1 {
46        }
47        NonStatClass_1_1 nonStatClass_1_2_obj = new NonStatClass_1_1();
48    }
49
50    void method_1() {
51        Object obj1 = new Object() {
52        };
53        logWriter.println("--> Debuggee: DUMP{" + obj1 + "}");
54    }
55
56    public void run() {
57        logWriter.println("--> Debuggee: NestedTypesDebuggee: START");
58        StatClass_1 stat_Class_1_Obj = new StatClass_1();
59        NonStatClass_1 nonStat_Class_1_Obj = new NonStatClass_1();
60        method_1();
61        synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_READY);
62        synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_CONTINUE);
63        logWriter.println("--> Debuggee: DUMP{" +
64                stat_Class_1_Obj + nonStat_Class_1_Obj + "}");
65        logWriter.println("--> Debuggee: NestedTypesDebuggee: FINISH");
66    }
67
68    public static void main(String [] args) {
69        runDebuggee(NestedTypesDebuggee.class);
70    }
71
72}
73
74