aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata-java/java/Car8.java
blob: 941c712624a8eb6297ee16fe6863784be5f2154c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Car8 implements Vehicle
{
    private InternalCombustionEngine engine;

    public Car8() {
        engine = new InternalCombustionEngine();
    }

    public void go()
    {
        System.out.println("Driving!");
        engine.run();
    }

    public class InternalCombustionEngine
    {
        public native void run();

        public class ChemicalReaction {
            public native void occur();

            public class Atoms {
                @java.lang.annotation.Native
                public int hydrogenAtomCount;
            }
        }
    }
}