Mercurial > emacs
annotate test/cedet/tests/testjavacomp.java @ 107657:5e0627e338dc
* xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Tue, 30 Mar 2010 10:40:04 -0700 |
parents | bb33285d1ceb |
children | 89eccb374dec |
rev | line source |
---|---|
105267 | 1 /** testjavacomp.java --- |
2 * | |
107494
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
3 * Copyright (C) 2009, 2010 Free Software Foundation, Inc. |
105267 | 4 * |
5 * Author: Eric M. Ludlam <eric@siege-engine.com> | |
6 * | |
107494
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
7 * This file is part of GNU Emacs. |
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
8 * |
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
9 * GNU Emacs is free software: you can redistribute it and/or modify |
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
10 * it under the terms of the GNU General Public License as published by |
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
11 * the Free Software Foundation, either version 3 of the License, or |
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
12 * (at your option) any later version. |
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
13 * |
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
14 * GNU Emacs is distributed in the hope that it will be useful, |
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
17 * GNU General Public License for more details. |
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
18 * |
105267 | 19 * You should have received a copy of the GNU General Public License |
107494
bb33285d1ceb
License updates for some test/cedet/tests files.
Glenn Morris <rgm@gnu.org>
parents:
106537
diff
changeset
|
20 * along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
105267 | 21 */ |
22 | |
23 package tests.testjavacomp; | |
24 | |
25 class secondClass { | |
26 private void scFuncOne() { } | |
27 public void scFuncOne() { } | |
28 } | |
29 | |
30 | |
31 public class testjavacomp { | |
32 | |
33 private int funcOne() { } | |
34 private int funcTwo() { } | |
35 private char funcThree() { } | |
36 | |
37 class nestedClass { | |
38 private void ncFuncOne() { } | |
39 public void ncFuncOne() { } | |
40 } | |
41 | |
42 public void publicFunc() { | |
43 | |
44 int i; | |
45 | |
46 i = fu// -1- | |
47 // #1# ( "funcOne" "funcTwo" ) | |
48 ; | |
49 | |
50 fu// -2- | |
51 // #2# ( "funcOne" "funcThree" "funcTwo" ) | |
52 ; | |
53 | |
54 secondClass SC; | |
55 | |
56 SC.//-3- | |
57 // #3# ( "scFuncOne" ) | |
58 ; | |
59 | |
60 nestedClass NC; | |
61 | |
62 // @todo - need to fix this? I don't know if this is legal java. | |
63 NC.// - 4- | |
64 // #4# ( "ncFuncOne" ) | |
65 ; | |
66 } | |
67 | |
68 } // testjavacomp |