104494
|
1 /** testjavacomp.java ---
|
|
2 *
|
|
3 * Copyright (C) 2009 Eric M. Ludlam
|
|
4 *
|
|
5 * Author: Eric M. Ludlam <eric@siege-engine.com>
|
|
6 * X-RCS: $Id: testjavacomp.java,v 1.1 2009/02/01 16:28:25 zappo Exp $
|
|
7 *
|
|
8 * This program is free software; you can redistribute it and/or
|
|
9 * modify it under the terms of the GNU General Public License as
|
|
10 * published by the Free Software Foundation; either version 2, or (at
|
|
11 * your option) any later version.
|
|
12 *
|
|
13 * This program is distributed in the hope that it will be useful, but
|
|
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
16 * General Public License for more details.
|
|
17 *
|
|
18 * You should have received a copy of the GNU General Public License
|
|
19 * along with this program; see the file COPYING. If not, write to
|
|
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
21 * Boston, MA 02110-1301, USA.
|
|
22 */
|
|
23
|
|
24 package tests.testjavacomp;
|
|
25
|
|
26 class secondClass {
|
|
27 private void scFuncOne() { }
|
|
28 public void scFuncOne() { }
|
|
29 }
|
|
30
|
|
31
|
|
32 public class testjavacomp {
|
|
33
|
|
34 private int funcOne() { }
|
|
35 private int funcTwo() { }
|
|
36 private char funcThree() { }
|
|
37
|
|
38 class nestedClass {
|
|
39 private void ncFuncOne() { }
|
|
40 public void ncFuncOne() { }
|
|
41 }
|
|
42
|
|
43 public void publicFunc() {
|
|
44
|
|
45 int i;
|
|
46
|
|
47 i = fu// -1-
|
|
48 // #1# ( "funcOne" "funcTwo" )
|
|
49 ;
|
|
50
|
|
51 fu// -2-
|
|
52 // #2# ( "funcOne" "funcThree" "funcTwo" )
|
|
53 ;
|
|
54
|
|
55 secondClass SC;
|
|
56
|
|
57 SC.//-3-
|
|
58 // #3# ( "scFuncOne" )
|
|
59 ;
|
|
60
|
|
61 nestedClass NC;
|
|
62
|
|
63 // @todo - need to fix this? I don't know if this is legal java.
|
|
64 NC.// - 4-
|
|
65 // #4# ( "ncFuncOne" )
|
|
66 ;
|
|
67 }
|
|
68
|
|
69 } // testjavacomp
|