diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2005-03-27 15:38:37 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2005-03-27 15:38:37 +0000 |
commit | 141f6ebeec28a9930b8db99435f8d08eaf18503e (patch) | |
tree | 76a2b9e43b28205c4b86f7491483f2ecc62c90ef /doc | |
parent | 5d57240cfa56af2b1f368ebe64832c6fcf205f46 (diff) | |
download | classpath-141f6ebeec28a9930b8db99435f8d08eaf18503e.tar.gz |
2005-03-26 Andrew John Hughes <gnu_andrew@member.fsf.org>
* doc/hacking.texinfo:
Added note on reserved word usage.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/hacking.texinfo | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/hacking.texinfo b/doc/hacking.texinfo index 90bd86b07..96350f98c 100644 --- a/doc/hacking.texinfo +++ b/doc/hacking.texinfo @@ -669,6 +669,17 @@ the caught exception. @} @end example +@item +Avoid the use of reserved words for identifiers. This is obvious with those +such as @code{if} and @code{while} which have always been part of the Java +programming language, but you should be careful about accidentally using +words which have been added in later versions. Notable examples are +@code{assert} (added in 1.4) and @code{enum} (added in 1.5). Jikes will warn +of the use of the word @code{enum}, but, as it doesn't yet support the 1.5 +version of the language, it will still allow this usage through. A +compiler which supports 1.5 (e.g. the Eclipse compiler, ecj) will simply +fail to compile the offending source code. + @c fixme Describe Anonymous classes (example). @c fixme Descibe Naming conventions when different from GNU Coding Standards. @c fixme Describee API doc javadoc tags used. |