author | pmuthuswamy |
Mon, 12 Nov 2018 13:31:41 +0530 | |
changeset 52487 | 5d1d07b72f15 |
permissions | -rw-r--r-- |
52487
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
1 |
/* |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
2 |
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
4 |
* |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
8 |
* |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
13 |
* accompanied this code). |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
14 |
* |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
18 |
* |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
21 |
* questions. |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
22 |
*/ |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
23 |
|
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
24 |
/* |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
25 |
* @test |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
26 |
* @bug 5076751 |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
27 |
* @summary System properties documentation needed in javadocs |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
28 |
* @modules jdk.compiler/com.sun.tools.javac.api |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
29 |
* jdk.compiler/com.sun.tools.javac.file |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
30 |
* jdk.compiler/com.sun.tools.javac.tree |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
31 |
* jdk.compiler/com.sun.tools.javac.util |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
32 |
* @build DocCommentTester |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
33 |
* @run main DocCommentTester SystemPropertyTest.java |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
34 |
*/ |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
35 |
|
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
36 |
class SystemPropertyTest { |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
37 |
/** |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
38 |
* abc {@systemProperty xyz.qwe} def |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
39 |
*/ |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
40 |
void simple_term() {} |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
41 |
/* |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
42 |
DocComment[DOC_COMMENT, pos:1 |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
43 |
firstSentence: 3 |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
44 |
Text[TEXT, pos:1, abc_] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
45 |
SystemProperty[SYSTEM_PROPERTY, pos:5 |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
46 |
property name: xyz.qwe |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
47 |
] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
48 |
Text[TEXT, pos:30, _def] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
49 |
body: empty |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
50 |
block tags: empty |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
51 |
] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
52 |
*/ |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
53 |
|
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
54 |
/** |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
55 |
* abc {@systemProperty xyz qwe} |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
56 |
*/ |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
57 |
void bad_with_whitespace() {} |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
58 |
/* |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
59 |
DocComment[DOC_COMMENT, pos:1 |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
60 |
firstSentence: 3 |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
61 |
Text[TEXT, pos:1, abc_] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
62 |
Erroneous[ERRONEOUS, pos:5 |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
63 |
code: compiler.err.dc.unexpected.content |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
64 |
body: {@systemProperty_xyz_q |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
65 |
] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
66 |
Text[TEXT, pos:27, we}] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
67 |
body: empty |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
68 |
block tags: empty |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
69 |
] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
70 |
*/ |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
71 |
|
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
72 |
/** |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
73 |
* abc {@systemProperty} |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
74 |
*/ |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
75 |
void bad_no_property() {} |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
76 |
/* |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
77 |
DocComment[DOC_COMMENT, pos:1 |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
78 |
firstSentence: 3 |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
79 |
Text[TEXT, pos:1, abc_] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
80 |
Erroneous[ERRONEOUS, pos:5 |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
81 |
code: compiler.err.dc.no.content |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
82 |
body: {@systemProperty |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
83 |
] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
84 |
Text[TEXT, pos:21, }] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
85 |
body: empty |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
86 |
block tags: empty |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
87 |
] |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
88 |
*/ |
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
89 |
|
5d1d07b72f15
5076751: System properties documentation needed in javadocs
pmuthuswamy
parents:
diff
changeset
|
90 |
} |