src/solaris/doc/sun/man/man1/ja/javac.1
author ssadetsky
Mon, 16 Oct 2017 08:06:56 -0700
changeset 47387 4d711a58bb3b
parent 47216 71c04702a3d5
child 49424 4269e701448e
permissions -rw-r--r--
8180821: [macosx]com/apple/laf/ScreenMenu/ScreenMenuMemoryLeakTest.java: The menu item should have been GC-ed Reviewed-by: prr, psadhukhan
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
     1
'\" t
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
     2
.\" Copyright (c) 1994, 2014, Oracle and/or its affiliates. All rights reserved.
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
     3
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
     4
.\"
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
     5
.\" This code is free software; you can redistribute it and/or modify it
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
     6
.\" under the terms of the GNU General Public License version 2 only, as
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
     7
.\" published by the Free Software Foundation.
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
     8
.\"
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
     9
.\" This code is distributed in the hope that it will be useful, but WITHOUT
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    10
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    11
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    12
.\" version 2 for more details (a copy is included in the LICENSE file that
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    13
.\" accompanied this code).
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    14
.\"
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    15
.\" You should have received a copy of the GNU General Public License version
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    16
.\" 2 along with this work; if not, write to the Free Software Foundation,
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    17
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    18
.\"
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    19
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    20
.\" or visit www.oracle.com if you need additional information or have any
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    21
.\" questions.
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    22
.\"
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    23
.\" Title: javac
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    24
.\" Language: Japanese
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    25
.\" Date: 2015年3月3日
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    26
.\" SectDesc: 基本ツール
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    27
.\" Software: JDK 8
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    28
.\" Arch: 汎用
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    29
.\" Part Number: E58103-01
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    30
.\" Doc ID: JSSON
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    31
.\"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    32
.if n .pl 99999
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    33
.TH "javac" "1" "2015年3月3日" "JDK 8" "基本ツール"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    34
.\" -----------------------------------------------------------------
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    35
.\" * Define some portability stuff
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    36
.\" -----------------------------------------------------------------
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    37
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    38
.\" http://bugs.debian.org/507673
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    39
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    40
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    41
.ie \n(.g .ds Aq \(aq
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    42
.el       .ds Aq '
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    43
.\" -----------------------------------------------------------------
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    44
.\" * set default formatting
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    45
.\" -----------------------------------------------------------------
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    46
.\" disable hyphenation
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    47
.nh
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    48
.\" disable justification (adjust text to left margin only)
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    49
.ad l
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    50
.\" -----------------------------------------------------------------
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    51
.\" * MAIN CONTENT STARTS HERE *
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    52
.\" -----------------------------------------------------------------
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    53
.SH "名前"
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    54
javac \- Javaクラスおよびインタフェースの定義を読み取り、バイトコードおよびクラス・ファイルにコンパイルします。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    55
.SH "概要"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    56
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    57
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    58
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    59
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    60
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    61
\fBjavac\fR [ \fIoptions\fR ] [ \fIsourcefiles\fR ] [ \fIclasses\fR] [ \fI@argfiles\fR ]
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    62
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    63
.if n \{\
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    64
.RE
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    65
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    66
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    67
引数を指定する順序は任意です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    68
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    69
\fIoptions\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    70
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    71
コマンド行オプション。オプションを参照してください。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    72
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    73
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    74
\fIsourcefiles\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    75
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    76
コンパイルされる1つ以上のソース・ファイル(\fBMyClass\&.java\fRなど)。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    77
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    78
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    79
\fIclasses\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    80
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    81
注釈の処理対象となる1つ以上のクラス(\fBMyPackage\&.MyClass\fRなど)。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    82
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    83
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    84
\fI@argfiles\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    85
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    86
オプションとソース・ファイルを一覧表示する1つ以上のファイル。このファイルの中では\fB\-J\fRオプションは指定できません。コマンド行引数ファイルを参照してください。
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
.RE
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    88
.SH "説明"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    89
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    90
\fBjavac\fRコマンドは、Javaプログラミング言語で記述されたクラスとインタフェースの定義を読み取り、バイトコードのクラス・ファイルにコンパイルします。\fBjavac\fRコマンドでは、Javaソース・ファイルおよびクラス内の注釈の処理もできます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    91
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
    92
ソース・コードのファイル名を\fBjavac\fRに渡すには、2つの方法があります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    93
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    94
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    95
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    96
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    97
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    98
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
    99
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   100
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   101
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   102
ソース・ファイルの数が少ない場合は、ファイル名をコマンド行で指定します。
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.RE
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   104
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   105
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   106
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   107
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   108
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   109
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   110
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   111
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   112
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   113
ソース・ファイルの数が多い場合は、ファイル内のファイル名を空白または改行で区切って指定します。\fBjavac\fRコマンドで、リスト・ファイル名の先頭にアットマーク(@)を使用します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   114
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   115
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   116
ソース・コードのファイル名は\&.java拡張子を、クラスのファイル名は\&.class拡張子を持っている必要があります。また、ソース・ファイルとクラス・ファイルのどちらも、該当するクラスに対応するルート名を持っている必要があります。たとえば、\fBMyClass\fRという名前のクラスは、\fBMyClass\&.java\fRという名前のソース・ファイルに記述されます。このソース・ファイルは、\fBMyClass\&.class\fRという名前のバイトコード・クラス・ファイルにコンパイルされます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   117
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   118
内部クラスが定義されていると、追加のクラス・ファイルが生成されます。これらのクラス・ファイルの名前は、\fBMyClass$MyInnerClass\&.class\fRのように、内部クラス名と外部クラス名を組み合せたものになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   119
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   120
ソース・ファイルは、パッケージ・ツリーを反映したディレクトリ・ツリーに配置します。たとえば、すべてのソース・ファイルが\fB/workspace\fRにある場合、\fBcom\&.mysoft\&.mypack\&.MyClass\fRのソース・コードを、\fB/workspace/com/mysoft/mypack/MyClass\&.java\fRに格納します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   121
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   122
デフォルトでは、コンパイラは、各クラス・ファイルを対応するソース・ファイルと同じディレクトリに格納します。\fB\-d\fRオプションを使用して、別の出力先ディレクトリを指定できます。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   123
.SH "オプション"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   124
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   125
コンパイラには、現在の開発環境でサポートされる標準オプションのセットがあります。これ以外の非標準オプションは、現在の仮想マシンおよびコンパイラの実装に固有のオプションで、将来、変更される可能性があります。非標準オプションは、\fB\-X\fRオプションで始まります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   126
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   127
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   128
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   129
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   130
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   131
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   132
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   133
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   134
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   135
クロスコンパイル・オプションも参照してください
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   136
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   137
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   138
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   139
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   140
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   141
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   142
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   143
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   144
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   145
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   146
非標準オプションも参照してください
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   147
.RE
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   148
.SS "標準オプション"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   149
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   150
\-A\fIkey\fR[\fI=value\fR]
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   151
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   152
注釈プロセッサに渡すオプションを指定します。これらのオプションは、\fBjavac\fRが直接解釈するのではなく、それぞれのプロセッサで使用できるようになります。\fBkey\fRの値は、1つまたは複数の識別子をドット(\&.)で区切る必要があります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   153
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   154
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   155
\-cp \fIpath\fR or \-classpath \fIpath\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   156
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   157
ユーザー・クラス・ファイル、および(オプションで)注釈プロセッサとソース・ファイルを検索する場所を指定します。このクラス・パスは\fBCLASSPATH\fR環境変数のユーザー・クラス・パスをオーバーライドします。\fBCLASSPATH\fR、\fB\-cp\fR、\fB\-classpath\fRのいずれも指定されていない場合、ユーザーの\fIクラス・パス\fRは、現在のディレクトリになります。クラス・パスの設定 を参照してください。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   158
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   159
\fB\-sourcepath\fRオプションが指定されていない場合、ソース・ファイルもユーザー・クラス・パスから検索されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   160
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   161
\fB\-processorpath\fRオプションが指定されていない場合、注釈プロセッサもクラス・パスから検索されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   162
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   163
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   164
\-Djava\&.ext\&.dirs=\fIdirectories\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   165
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   166
インストール済拡張機能の位置をオーバーライドします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   167
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   168
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   169
\-Djava\&.endorsed\&.dirs=\fIdirectories\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   170
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   171
承認された標準パスの位置をオーバーライドします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   172
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   173
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   174
\-d \fIdirectory\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   175
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   176
クラス・ファイルの出力先ディレクトリを設定します。そのディレクトリは\fBjavac\fRでは作成されないため、すでに存在している必要があります。クラスがパッケージの一部である場合、\fBjavac\fRは、パッケージ名を反映したサブディレクトリ内にクラス・ファイルを格納し、必要に応じてディレクトリを作成します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   177
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   178
\fB\-d\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   179
\fB/home/myclasses\fRと指定し、クラスの名前が\fBcom\&.mypackage\&.MyClass\fRである場合、クラス・ファイルは\fB/home/myclasses/com/mypackage/MyClass\&.class\fRになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   180
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   181
\fI\-d\fRオプションが指定されなかった場合、\fBjavac\fRは、各クラス・ファイルを、その生成元となるソース・ファイルと同じディレクトリ内に格納します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   182
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   183
\fB注意:\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   184
\fI\-d\fRオプションによって指定されたディレクトリは、ユーザー・クラス・パスに自動的に追加されません。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   185
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   186
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   187
\-deprecation
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   188
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   189
非推奨のメンバーまたはクラスが使用またはオーバーライドされるたびに、説明を表示します。\fB\-deprecation\fRオプションが指定されていない場合、\fBjavac\fRは、非推奨のメンバーまたはクラスを使用またはオーバーライドしているソース・ファイルのサマリーを表示します。\fB\-deprecation\fRオプションは、\fB\-Xlint:deprecation\fRの省略表記です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   190
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   191
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   192
\-encoding \fIencoding\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   193
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   194
ソース・ファイルのエンコーディング名(EUC\-JPやUTF\-8など)を設定します。\fB\-encoding\fRオプションが指定されていない場合は、プラットフォームのデフォルト・コンバータが使用されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   195
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   196
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   197
\-endorseddirs \fIdirectories\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   198
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   199
承認された標準パスの位置をオーバーライドします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   200
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   201
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   202
\-extdirs \fIdirectories\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   203
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   204
\fBext\fRディレクトリの位置をオーバーライドします。directories変数には、コロンで区切ったディレクトリのリストを指定します。指定したディレクトリ内の各JARファイルから、クラス・ファイルが検索されます。検出されたすべてのJARファイルは、クラス・パスの一部になります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   205
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   206
クロスコンパイル(異なるJavaプラットフォームに実装されたブートストラップ・クラスや拡張機能クラスに対してコンパイルを行う)を実行する場合、このオプションには拡張機能クラスを含むディレクトリを指定します。詳細はクロスコンパイル・オプションを参照してください。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   207
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   208
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   209
\-g
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   210
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   211
ローカル変数を含むすべてのデバッグ情報を生成します。デフォルトでは、行番号およびソース・ファイル情報のみが生成されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   212
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   213
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   214
\-g:none
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   215
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   216
デバッグ情報を生成しません。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   217
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   218
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   219
\-g:[\fIkeyword list\fR]
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   220
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   221
カンマで区切られたキーワード・リストにより指定された、特定の種類のデバッグ情報のみを生成します。次のキーワードが有効です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   222
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   223
source
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   224
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   225
ソース・ファイルのデバッグ情報。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   226
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   227
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   228
lines
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   229
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   230
行番号のデバッグ情報。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   231
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   232
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   233
vars
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   234
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   235
ローカル変数のデバッグ情報。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   236
.RE
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
.RE
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   238
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   239
\-help
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   240
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   241
標準オプションの概要を出力します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   242
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   243
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   244
\-implicit:[\fIclass, none\fR]
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   245
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   246
暗黙的にロードされたソース・ファイルに対するクラス・ファイルの生成を制御します。クラス・ファイルを自動生成するには、\fB\-implicit:class\fRを使用します。クラス・ファイルの生成を抑制するには、\fB\-implicit:none\fRを使用します。このオプションが指定されなかった場合のデフォルト動作は、クラス・ファイルの自動生成になります。その場合、そのようなクラス・ファイルが生成された時に注釈処理も実行されると、コンパイラから警告が発行されます。\fB\-implicit\fRオプションが明示的に設定された場合、警告は発行されません。型の検索を参照してください。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   247
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   248
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   249
\-J\fIoption\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   250
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   251
Java Virtual Machine (JVM)に\fBoption\fRを渡します。optionには、Java起動ツールのリファレンス・ページに記載されているオプションを1つ指定します。たとえば、\fB\-J\-Xms48m\fRと指定すると、スタートアップ・メモリーは48MBに設定されます。java(1)を参照してください。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   252
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   253
\fB注意:\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   254
\fICLASSPATH\fR、\fB\-classpath\fR、\fB\-bootclasspath\fRおよび\fB\-extdirs\fRオプションは、\fBjavac\fRの実行に使用されるクラスを指定しません。これらのオプションおよび変数を使用してコンパイラの実装をカスタマイズしようとすると、リスクが高く、多くの場合、必要な処理が実行されません。コンパイラの実装をカスタマイズする必要がある場合、\fB\-J\fRオプションを使用して、基礎となるJava起動ツールにオプションを渡します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   255
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   256
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   257
\-nowarn
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   258
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   259
警告メッセージを無効にします。このオプションは、\fB\-Xlint:none\fRオプションと同じように動作します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   260
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   261
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   262
\-parameters
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   263
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   264
リフレクションAPIのメソッド\fBjava\&.lang\&.reflect\&.Executable\&.getParameters\fRが取得できるように、生成されるクラス・ファイル内のコンストラクタとメソッドの仮パラメータ名を格納します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   265
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   266
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   267
\-proc: [\fInone\fR, \fIonly\fR]
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   268
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   269
注釈処理およびコンパイルを実行するかを制御します。\fB\-proc:none\fRは、注釈処理なしでコンパイルが実行されることを意味します。\fB\-proc:only\fRは、注釈処理のみが実行され、後続のコンパイルはまったく実行されないことを意味します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   270
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   271
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   272
\-processor \fIclass1\fR [,\fIclass2\fR,\fIclass3\fR\&.\&.\&.]
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   273
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   274
実行する注釈プロセッサの名前。これを指定した場合、デフォルトの検索処理は省略されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   275
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   276
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   277
\-processorpath \fIpath\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   278
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   279
注釈プロセッサを検索する場所を指定します。このオプションが使用されない場合、クラス・パスのプロセッサが検索されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   280
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   281
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   282
\-s \fIdir\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   283
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   284
生成されたソース・ファイルの格納先となるディレクトリを指定します。そのディレクトリは\fBjavac\fRでは作成されないため、すでに存在している必要があります。クラスがパッケージの一部である場合、コンパイラは、パッケージ名を反映したサブディレクトリ内にソース・ファイルを格納し、必要に応じてディレクトリを作成します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   285
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   286
\fB\-s /home/mysrc\fRと指定し、クラスの名前が\fBcom\&.mypackage\&.MyClass\fRである場合、ソース・ファイルは\fB/home/mysrc/com/mypackage/MyClass\&.java\fRに格納されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   287
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   288
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   289
\-source \fIrelease\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   290
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   291
受け付けるソース・コードのバージョンを指定します。\fBrelease\fRには次の値を指定できます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   292
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   293
1\&.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   294
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   295
このコンパイラでは、Java SE 1\&.3以降に導入されたアサーション、総称または他の言語機能をサポートしません。
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
.RE
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   297
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   298
1\&.4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   299
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   300
Java SE 1\&.4で導入された、アサーションを含むコードを受け付けます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   301
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   302
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   303
1\&.5
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   304
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   305
Java SE 5で導入された総称および他の言語機能を含んだコードを受け付けます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   306
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   307
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   308
5
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   309
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   310
1\&.5と同義です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   311
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   312
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   313
1\&.6
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   314
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   315
Java SE 6では言語に対する変更は導入されませんでした。しかし、ソース・ファイル内のエンコーディング・エラーが、Java Platform, Standard Editionの以前のリリースような警告ではなく、エラーとして報告されるようになりました。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   316
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   317
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   318
6
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   319
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   320
1\&.6と同義です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   321
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   322
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   323
1\&.7
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   324
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   325
Java SE 7で導入された機能を含むコードを受け付けます。
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
.RE
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   327
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   328
7
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   329
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   330
1\&.7と同義です。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   331
.RE
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   332
.PP
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   333
1\&.8
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   334
.RS 4
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   335
これがデフォルト値です。Java SE 8で導入された機能を含むコードを受け付けます。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   336
.RE
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   337
.PP
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   338
8
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   339
.RS 4
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   340
1\&.8と同義です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   341
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   342
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   343
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   344
\-sourcepath \fIsourcepath\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   345
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   346
クラスまたはインタフェースの定義を検索するソース・コード・パスを指定します。ユーザー・クラス・パスと同様に、ソース・パスのエントリは、Oracle Solarisではコロン(:)で、Windowsではセミコロンで区切り、ここには、ディレクトリ、JARアーカイブまたはZIPアーカイブを指定できます。パッケージを使用している場合は、ディレクトリまたはアーカイブ内のローカル・パス名がパッケージ名を反映している必要があります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   347
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   348
\fB注意:\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   349
ソース・ファイルも見つかった場合、クラス・パスにより見つかったクラスは再コンパイルされる可能性があります。型の検索を参照してください。
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
.RE
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   351
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   352
\-verbose
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   353
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   354
ロードされるクラスおよびコンパイルされるソース・ファイルごとの情報が出力される、詳細出力を使用します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   355
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   356
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   357
\-version
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   358
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   359
リリース情報を出力します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   360
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   361
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   362
\-werror
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   363
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   364
警告が発生した場合にコンパイルを終了します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   365
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   366
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   367
\-X
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   368
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   369
非標準オプションに関する情報を表示して終了します。
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
.RE
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   371
.SS "クロスコンパイル・オプション"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   372
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   373
デフォルトでは、クラスのコンパイルは、\fBjavac\fRが添付されているプラットフォームのブートストラップ・クラスおよび拡張機能クラスに対して行われます。ただし、\fBjavac\fRは、異なるJavaプラットフォームに実装されたブートストラップ・クラスおよび拡張機能クラスに対してコンパイルを行うクロスコンパイルもサポートしています。クロスコンパイルを行う場合は、\fB\-bootclasspath\fRおよび\fB\-extdirs\fRオプションを使用することが重要です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   374
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   375
\-target \fIversion\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   376
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   377
仮想マシンの指定されたリリースを対象とするクラス・ファイルを生成します。クラス・ファイルは、指定されたターゲット以降のリリースでは動作しますが、それより前のリリースのJVMでは動作しません。有効なターゲットは、1\&.1、1\&.2、1\&.3、1\&.4、1\&.5 (5も可)、1\&.6 (6も可)、1\&.7 (7も可)および1\&.8 (8も可)です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   378
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   379
\fB\-target\fRオプションのデフォルトは、\fB\-source\fRオプションの値によって異なります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   380
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   381
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   382
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   383
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   384
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   385
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   386
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   387
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   388
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   389
\fB\-source\fRオプションが指定されていない場合、\fB\-target\fRオプションの値は1\&.8です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   390
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   391
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   392
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   393
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   394
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   395
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   396
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   397
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   398
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   399
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   400
\fB\-source\fRオプションが1\&.2の場合、\fB\-target\fRオプションの値は1\&.4です。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   401
.RE
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   402
.sp
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   403
.RS 4
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   404
.ie n \{\
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   405
\h'-04'\(bu\h'+03'\c
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   406
.\}
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   407
.el \{\
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   408
.sp -1
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   409
.IP \(bu 2.3
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   410
.\}
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   411
\fB\-source\fRオプションが1\&.3の場合、\fB\-target\fRオプションの値は1\&.4です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   412
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   413
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   414
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   415
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   416
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   417
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   418
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   419
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   420
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   421
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   422
\fB\-source\fRオプションが1\&.5の場合、\fB\-target\fRオプションの値は1\&.8です。
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   423
.RE
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   424
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   425
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   426
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   427
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   428
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   429
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   430
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   431
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   432
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   433
\fB\-source\fRオプションが1\&.6の場合、\fB\-target\fRオプションの値は1\&.8です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   434
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   435
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   436
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   437
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   438
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   439
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   440
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   441
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   442
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   443
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   444
\fB\-source\fRオプションが1\&.7の場合、\fB\-target\fRオプションの値は1\&.8です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   445
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   446
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   447
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   448
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   449
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   450
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   451
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   452
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   453
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   454
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   455
\fB\-source\fRオプションの他のすべての値の場合、\fB\-target\fRオプションの値は、\fB\-source\fRオプションの値になります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   456
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   457
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   458
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   459
\-bootclasspath \fIbootclasspath\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   460
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   461
指定された一連のブート・クラスに対してクロスコンパイルを行います。ユーザー・クラス・パスと同様に、ブート・クラス・パスのエントリはコロン(:)で区切り、ここには、ディレクトリ、JARアーカイブまたはZIPアーカイブを指定できます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   462
.RE
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   463
.SS "コンパクト・プロファイル・オプション"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   464
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   465
JDK 8以降から、\fBjavac\fRコンパイラはコンパクト・プロファイルをサポートします。コンパクト・プロファイルを使用すると、Javaプラットフォーム全体を必要としないアプリケーションは、デプロイ可能で、小さいフットプリントで実行できます。コンパクト・プロファイル機能は、アプリケーション・ストアからのアプリケーションのダウンロード時間を短縮するのに使用できます。この機能は、JREをバンドルするJavaアプリケーションの、よりコンパクトなデプロイメントに役立ちます。この機能は、小さいデバイスでも役立ちます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   466
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   467
サポートされているプロファイル値は、\fBcompact1\fR、\fBcompact2\fRおよび\fBcompact3\fRです。これらは、追加のレイヤーです。大きい番号の各コンパクト・プロファイルには、小さい番号の名前のプロファイル内のすべてのAPIが含まれます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   468
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   469
\-profile
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   470
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   471
コンパクト・プロファイルを使用する場合、このオプションは、コンパイル時にプロファイル名を指定します。次に例を示します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   472
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   473
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   474
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   475
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   476
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   477
\fBjavac \-profile compact1 Hello\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   478
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   479
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   480
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   481
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   482
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   483
javacは、指定されたプロファイルにない任意のJava SE APIを使用するソース・コードをコンパイルしません。これは、そのようなソース・コードをコンパイルしようとすることによって生じるエラー・メッセージの例です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   484
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   485
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   486
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   487
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   488
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   489
\fBcd jdk1\&.8\&.0/bin\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   490
\fB\&./javac \-profile compact1 Paint\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   491
\fBPaint\&.java:5: error: Applet is not available in profile \*(Aqcompact1\*(Aq\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   492
\fBimport java\&.applet\&.Applet;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   493
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   494
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   495
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   496
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   497
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   498
この例では、\fBApplet\fRクラスを使用しないようにソースを変更することによって、エラーを修正できます。\-profileオプションを指定せずにコンパイルすることによって、エラーを修正することもできます。コンパイルは、Java SE APIの完全なセットに対して実行されます。(どのコンパクト・プロファイルにも、\fBApplet\fRクラスは含まれていません。)
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   499
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   500
コンパクト・プロファイルを使用してコンパイルするための別の方法として、\fB\-bootclasspath\fRオプションを使用して、プロファイルのイメージを指定する\fBrt\&.jar\fRファイルへのパスを指定します。かわりに\fB\-profile\fRオプションを使用すると、プロファイル・イメージは、コンパイル時にシステム上に存在する必要がありません。これは、クロスコンパイル時に役立ちます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   501
.RE
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   502
.SS "非標準オプション"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   503
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   504
\-Xbootclasspath/p:\fIpath\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   505
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   506
ブートストラップ・クラス・パスに接尾辞を追加します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   507
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   508
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   509
\-Xbootclasspath/a:\fIpath\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   510
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   511
ブートストラップ・クラス・パスに接頭辞を追加します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   512
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   513
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   514
\-Xbootclasspath/:\fIpath\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   515
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   516
ブートストラップ・クラス・ファイルの位置をオーバーライドします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   517
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   518
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   519
\-Xdoclint:[\-]\fIgroup\fR [\fI/access\fR]
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   520
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   521
\fIgroup\fRの値が\fBaccessibility\fR、\fBsyntax\fR、\fBreference\fR、\fBhtml\fRまたは\fBmissing\fRのいずれかである特定のチェック・グループを有効または無効にします。これらのチェック・グループの詳細は、\fBjavadoc\fRコマンドの\fB\-Xdoclint\fRオプションを参照してください。\fB\-Xdoclint\fRオプションは、\fBjavac\fRコマンドではデフォルトで無効になります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   522
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   523
変数\fIaccess\fRは、\fB\-Xdoclint\fRオプションがチェックするクラスとメンバーの最小の可視性レベルを指定します。\fBpublic\fR、\fBprotected\fR、\fBpackage\fRおよび\fBprivate\fRの値(可視性の高い順)の1つを持つことができます。たとえば、次のオプションは、(protected、package、publicを含む) protected以上のアクセス・レベルを持つクラスおよびメンバーを(すべてのチェック・グループで)チェックします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   524
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   525
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   526
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   527
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   528
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   529
\fB\-Xdoclint:all/protected\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   530
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   531
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   532
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   533
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   534
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   535
次のオプションは、package以上のアクセス権(packageおよびpublicを含む)を持つクラスおよびメンバーに対するHTMLエラーをチェックしないことを除き、すべてのアクセス・レベルに対してすべてのチェック・グループを有効にします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   536
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   537
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   538
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   539
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   541
\fB\-Xdoclint:all,\-html/package\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   542
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   543
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   544
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   545
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   546
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   547
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   548
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   549
\-Xdoclint:none
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   550
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   551
すべてのチェック・グループを無効にします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   552
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   553
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   554
\-Xdoclint:all[\fI/access\fR]
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   555
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   556
すべてのチェック・グループを有効にします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   557
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   558
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   559
\-Xlint
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   560
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   561
推奨されるすべての警告を有効にします。このリリースでは、利用可能なすべての警告を有効にすることをお薦めします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   562
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   563
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   564
\-Xlint:all
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   565
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   566
推奨されるすべての警告を有効にします。このリリースでは、利用可能なすべての警告を有効にすることをお薦めします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   567
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   568
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   569
\-Xlint:none
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   570
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   571
すべての警告を無効にします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   572
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   573
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   574
\-Xlint:\fIname\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   575
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   576
警告名を無効にします。このオプションで無効にできる警告のリストは、\-Xlintオプションを使用した警告の有効化または無効化を参照してください。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   577
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   578
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   579
\-Xlint:\fI\-name\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   580
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   581
警告名を無効にします。このオプションで無効にできる警告のリストを取得するには、\-Xlintオプションを使用した警告の有効化または無効化\-Xlint\fBオプションを使用した\fRを参照してください。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   582
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   583
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   584
\-Xmaxerrs \fInumber\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   585
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   586
印刷するエラーの最大数を設定します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   587
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   588
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   589
\-Xmaxwarns \fInumber\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   590
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   591
印刷する警告の最大数を設定します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   592
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   593
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   594
\-Xstdout \fIfilename\fR
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   595
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   596
コンパイラのメッセージを、指定されたファイルに送信します。デフォルトでは、コンパイラのメッセージは\fBSystem\&.err\fRに送られます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   597
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   598
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   599
\-Xprefer:[\fInewer,source\fR]
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   600
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   601
ある型に対してソース・ファイルとクラス・ファイルの両方が見つかった場合、そのどちらのファイルを読み取るかを指定します。(型の検索を参照してください)。\fB\-Xprefer:newer\fRオプションを使用した場合、ある型に対するソース・ファイルとクラス・ファイルのうち新しい方が読み取られます(デフォルト)。\fB\-Xprefer:source\fRオプションを使用した場合、ソース・ファイルが読み取られます。\fBSOURCE\fRの保存ポリシーを使用して宣言された注釈に任意の注釈プロセッサがアクセスできるようにする場合は、\fB\-Xprefer:source\fRを使用してください。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   602
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   603
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   604
\-Xpkginfo:[\fIalways\fR,\fIlegacy\fR,\fInonempty\fR]
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   605
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   606
javacがpackage\-info\&.javaファイルから\fBpackage\-info\&.class\fRファイルを生成するかどうかを制御します。このオプションで使用可能なmode引数は次のとおりです。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   607
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   608
always
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   609
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   610
すべての\fBpackage\-info\&.java\fRファイルの\fBpackage\-info\&.class\fRファイルを常に生成します。このオプションは、各\fB\&.java\fRファイルに対応する\fB\&.class\fRファイルがあることを確認するAntなどのビルド・システムを使用する場合に役立つことがあります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   611
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   612
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   613
legacy
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   614
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   615
package\-info\&.javaに注釈が含まれる場合にのみ\fBpackage\-info\&.class\fRファイルを生成します。package\-info\&.javaにコメントのみ含まれる場合に\fBpackage\-info\&.class\fRファイルを生成しません。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   616
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   617
\fB注意:\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   618
\fBpackage\-info\&.class\fRファイルは生成できますが、package\-info\&.javaファイル内のすべての注釈に\fBRetentionPolicy\&.SOURCE\fRがある場合は空になります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   619
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   620
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   621
nonempty
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   622
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   623
package\-info\&.javaに\fBRetentionPolicy\&.CLASS\fRまたは\fBRetentionPolicy\&.RUNTIME\fRとともに注釈が含まれる場合にのみ\fBpackage\-info\&.class\fRファイルを生成します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   624
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   625
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   626
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   627
\-Xprint
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   628
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   629
デバッグ目的で指定した型のテキスト表示を出力します。注釈処理もコンパイルも実行されません。出力形式は変更される可能性があります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   630
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   631
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   632
\-XprintProcessorInfo
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   633
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   634
ある特定のプロセッサが処理を依頼されている注釈に関する情報を出力します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   635
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   636
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   637
\-XprintRounds
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   638
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   639
初回および後続の注釈処理ラウンドに関する情報を出力します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   640
.RE
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   641
.SH "-XLINTオプションを使用した警告の有効化または無効化"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   642
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   643
\fB\-Xlint:name\fRオプションを使用して警告\fIname\fRを有効にします。ここで、\fBname\fRは次の警告名のいずれかになります。\fB\-Xlint:\-name:\fRオプションを使用して、警告を無効化できます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   644
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   645
cast
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   646
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   647
不要で冗長なキャストについて警告します。たとえば、次のようになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   648
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   649
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   650
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   651
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   652
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   653
\fBString s = (String) "Hello!"\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   654
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   655
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   656
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   657
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   658
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   659
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   660
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   661
classfile
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   662
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   663
クラス・ファイルの内容に関連した問題について警告します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   664
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   665
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   666
deprecation
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   667
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   668
非推奨の項目の使用について警告します。たとえば、次のようになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   669
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   670
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   671
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   672
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   673
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   674
\fBjava\&.util\&.Date myDate = new java\&.util\&.Date();\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   675
\fBint currentDay = myDate\&.getDay();\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   676
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   677
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   678
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   679
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   680
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   681
メソッド\fBjava\&.util\&.Date\&.getDay\fRはJDK 1\&.1以降は非推奨になりました。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   682
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   683
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   684
dep\-ann
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   685
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   686
\fB@deprecated\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   687
Javadocコメントでドキュメント化されているが、\fB@Deprecated\fR注釈が付いていない項目について警告します。たとえば、次のようになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   688
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   689
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   690
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   691
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   692
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   693
\fB/**\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   694
\fB  * @deprecated As of Java SE 7, replaced by {@link #newMethod()}\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   695
\fB  */\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   696
\fBpublic static void deprecatedMethood() { }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   697
\fBpublic static void newMethod() { }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   698
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   699
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   700
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   701
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   702
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   703
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   704
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   705
divzero
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   706
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   707
定整数0で除算されることについて警告します。たとえば、次のようになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   708
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   709
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   710
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   711
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   712
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   713
\fBint divideByZero = 42 / 0;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   714
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   715
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   716
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   717
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   718
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   719
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   720
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   721
empty
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   722
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   723
\fBif \fR文以降が空の文であることについて警告します。たとえば、次のようになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   724
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   725
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   726
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   727
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   728
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   729
\fBclass E {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   730
\fB    void m() {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   731
\fB         if (true) ;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   732
\fB    }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   733
\fB}\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   734
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   736
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   737
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   738
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   739
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   740
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   741
fallthrough
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   742
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   743
fall\-throughケースのswitchブロックをチェックし、検出されたものに対して警告メッセージを表示します。Fall\-throughケースは、switchブロック内の最後のケースを除くケースです。このコードにはbreak文は含まれません。コードの実行をそのケースから次のケースへ移動します。たとえば、このswitchブロック内のcase 1ラベルに続くコードは、break文で終わっていません。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   744
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   745
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   746
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   747
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   748
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   749
\fBswitch (x) {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   750
\fBcase 1:\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   751
\fB  System\&.out\&.println("1");\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   752
\fB  // No break statement here\&.\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   753
\fBcase 2:\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   754
\fB  System\&.out\&.println("2");\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   755
\fB}\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   756
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   757
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   758
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   759
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   760
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   761
このコードのコンパイル時に\fB\-Xlint:fallthrough\fRオプションが使用されていた場合、コンパイラは、問題になっているケースの行番号とともに、caseにfall\-throughする可能性があることを示す警告を発行します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   762
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   763
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   764
finally
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   765
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   766
正常に完了できない\fBfinally\fR句について警告します。たとえば、次のようになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   767
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   768
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   769
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   770
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   771
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   772
\fBpublic static int m() {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   773
\fB  try {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   774
\fB     throw new NullPointerException();\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   775
\fB  }  catch (NullPointerException(); {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   776
\fB     System\&.err\&.println("Caught NullPointerException\&.");\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   777
\fB     return 1;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   778
\fB   } finally {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   779
\fB     return 0;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   780
\fB   }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   781
\fB  }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   782
 
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   783
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   784
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   785
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   786
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   787
この例では、コンパイラは\fBfinally\fRブロックに関する警告を生成します。\fBint\fRメソッドが呼び出されると、値0が返されます。\fBfinally\fRブロックは、\fBtry\fRブロックが終了すると実行されます。この例では、制御が\fBcatch\fRブロックに移された場合、\fBint\fRメソッドは終了します。ただし、\fBfinally\fRブロックは実行される必要があるため、制御がメソッドの外部に移されていても、このブロックは実行されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   788
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   789
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   790
options
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   791
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   792
コマンド行オプションの使用に関する問題について警告します。クロスコンパイル・オプションを参照してください。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   793
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   794
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   795
overrides
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   796
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   797
メソッドのオーバーライドに関する問題について警告します。たとえば、次の2つのクラスがあるとします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   798
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   799
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   800
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   801
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   802
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   803
\fBpublic class ClassWithVarargsMethod {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   804
\fB  void varargsMethod(String\&.\&.\&. s) { }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   805
\fB}\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   806
 
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   807
\fBpublic class ClassWithOverridingMethod extends ClassWithVarargsMethod {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   808
\fB   @Override\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   809
\fB   void varargsMethod(String[] s) { }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   810
\fB}\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   811
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   812
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   813
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   814
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   815
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   816
コンパイラは、次のような警告を生成します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   817
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   818
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   819
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   820
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   821
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   822
\fBwarning: [override] varargsMethod(String[]) in ClassWithOverridingMethod \fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   823
\fBoverrides varargsMethod(String\&.\&.\&.) in ClassWithVarargsMethod; overriding\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   824
\fBmethod is missing \*(Aq\&.\&.\&.\*(Aq\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   825
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   826
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   827
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   828
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   829
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   830
コンパイラは、\fBvarargs\fRメソッドを検出すると、\fBvarargs\fRの仮パラメータを配列に変換します。メソッド\fBClassWithVarargsMethod\&.varargsMethod\fRでは、コンパイラは\fBvarargs\fRの仮パラメータ\fBString\&.\&.\&. s\fRを仮パラメータ\fBString[] s\fRに変換します。これは、メソッド\fBClassWithOverridingMethod\&.varargsMethod\fRの仮パラメータに対応する配列です。その結果、この例ではコンパイルが行われます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   831
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   832
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   833
path
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   834
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   835
コマンド行での無効なパス要素と存在しないパス・ディレクトリについて警告します(クラス・パス、ソース・パスなどのパス関連)。このような警告を\fB@SuppressWarnings\fR注釈で抑制することはできません。たとえば、次のようになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   836
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   837
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   838
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   839
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   840
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   841
\fBjavac \-Xlint:path \-classpath /nonexistentpath Example\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   842
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   843
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   844
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   845
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   846
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   847
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   848
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   849
processing
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   850
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   851
注釈処理に関する問題について警告します。コンパイラがこの警告を生成するのは、注釈を含むクラスがあるときに、使用している注釈プロセッサでそのタイプの例外を処理できない場合です。たとえば、単純な注釈プロセッサを次に示します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   852
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   853
\fBソース・ファイルAnnocProc\&.java\fR:
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   854
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   855
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   856
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   857
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   858
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   859
\fBimport java\&.util\&.*;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   860
\fBimport javax\&.annotation\&.processing\&.*;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   861
\fBimport javax\&.lang\&.model\&.*;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   862
\fBimport\&.javaz\&.lang\&.model\&.element\&.*;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   863
 
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   864
\fB@SupportedAnnotationTypes("NotAnno")\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   865
\fBpublic class AnnoProc extends AbstractProcessor {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   866
\fB  public boolean process(Set<? extends TypeElement> elems, RoundEnvironment renv){\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   867
\fB     return true;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   868
\fB  }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   869
 
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   870
\fB  public SourceVersion getSupportedSourceVersion() {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   871
\fB     return SourceVersion\&.latest();\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   872
\fB   }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   873
\fB}\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   874
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   875
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   876
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   877
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   878
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   879
\fBソース・ファイルAnnosWithoutProcessors\&.java\fR:
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   880
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   881
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   882
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   883
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   884
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   885
\fB@interface Anno { }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   886
\fB \fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   887
\fB@Anno\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   888
\fBclass AnnosWithoutProcessors { }\fR
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   889
 
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   890
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   891
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   892
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   893
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   894
次のコマンドは、注釈プロセッサ\fBAnnoProc\fRをコンパイルし、この注釈プロセッサをソース・ファイル\fBAnnosWithoutProcessors\&.java\fRに対して実行します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   895
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   896
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   897
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   898
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   899
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   900
\fBjavac AnnoProc\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   901
\fBjavac \-cp \&. \-Xlint:processing \-processor AnnoProc \-proc:only AnnosWithoutProcessors\&.java\fR
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   902
 
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   903
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   904
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   905
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   906
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   907
コンパイラがソース・ファイル\fBAnnosWithoutProcessors\&.java\fRに対して注釈プロセッサを実行すると、次の警告が生成されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   908
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   909
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   910
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   911
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   912
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   913
\fBwarning: [processing] No processor claimed any of these annotations: Anno\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   914
\fB \fR
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   915
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   916
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   917
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   918
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   919
この問題を解決するために、クラス\fBAnnosWithoutProcessors\fRで定義および使用される注釈の名前を、\fBAnno\fRから\fBNotAnno\fRに変更できます。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   920
.RE
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   921
.PP
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   922
rawtypes
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   923
.RS 4
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   924
raw型に対する未検査操作について警告します。次の文では、\fBrawtypes\fR警告が生成されます。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   925
.sp
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   926
.if n \{\
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   927
.RS 4
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   928
.\}
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   929
.nf
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   930
\fBvoid countElements(List l) { \&.\&.\&. }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   931
 
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   932
.fi
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   933
.if n \{\
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   934
.RE
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   935
.\}
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   936
次の例では、\fBrawtypes\fR警告は生成されません。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   937
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   938
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   939
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   940
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   941
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   942
\fBvoid countElements(List<?> l) { \&.\&.\&. }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   943
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   944
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   945
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   946
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   947
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   948
\fBList\fRはraw型です。ただし、\fBList<?>\fRは、アンバウンド形式のワイルドカードのパラメータ化された型です。\fBList\fRはパラメータ化されたインタフェースであるため、常にその型引数を指定します。この例では、\fBList\fRの仮引数はアンバウンド形式のワイルドカード(\fB?\fR)を使用してその仮型パラメータとして指定されます。つまり、\fBcountElements\fRメソッドは\fBList\fRインタフェースのどのインスタンス化も受け付けることができます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   949
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   950
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   951
Serial
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   952
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   953
直列化可能クラスに\fBserialVersionUID\fR定義がないことを警告します。たとえば、次のようになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   954
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   955
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   956
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   957
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   958
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   959
\fBpublic class PersistentTime implements Serializable\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   960
\fB{\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   961
\fB  private Date time;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   962
\fB \fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   963
\fB   public PersistentTime() {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   964
\fB     time = Calendar\&.getInstance()\&.getTime();\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   965
\fB   }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   966
\fB \fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   967
\fB   public Date getTime() {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   968
\fB     return time;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   969
\fB   }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   970
\fB}\fR
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   971
 
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   972
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   973
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   974
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   975
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   976
コンパイラは次の警告を生成します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   977
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   978
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   979
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   980
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   981
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   982
\fBwarning: [serial] serializable class PersistentTime has no definition of\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   983
\fBserialVersionUID\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   984
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
   985
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   986
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   987
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   988
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   989
直列化可能クラスが\fBserialVersionUID\fRという名前のフィールドを明示的に宣言しない場合、直列化ランタイム環境では、「Javaオブジェクト直列化仕様」で説明されているように、クラスの様々な側面に基づいて、クラスの\fBserialVersionUID\fRのデフォルト値を計算します。ただし、すべての直列化可能クラスが\fBserialVersionUID\fR値を明示的に宣言することを強くお薦めします。 これは、\fBserialVersionUID\fR値を計算するデフォルトのプロセスが、コンパイラの実装によって異なる可能性のあるクラスの詳細にきわめて影響を受けやすく、その結果、直列化復元中に予期しない\fBInvalidClassExceptions\fRが発生する可能性があるためです。Javaコンパイラの実装が異なっても\fBserialVersionUID\fR値の一貫性を確保にするには、直列化可能クラスが\fBserialVersionUID\fR値を明示的に宣言する必要があります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   990
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   991
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   992
static
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
   993
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   994
staticの使用に関する問題について警告します。たとえば、次のようになります。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   995
.sp
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   996
.if n \{\
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   997
.RS 4
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   998
.\}
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
   999
.nf
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1000
\fBclass XLintStatic {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1001
\fB    static void m1() { }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1002
\fB    void m2() { this\&.m1(); }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1003
\fB}\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1004
 
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1005
.fi
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1006
.if n \{\
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1007
.RE
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1008
.\}
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1009
コンパイラは次の警告を生成します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1010
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1011
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1012
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1013
.\}
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
  1014
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1015
\fBwarning: [static] static method should be qualified by type name, \fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1016
\fBXLintStatic, instead of by an expression\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1017
 
9352
cabba0c0f3ee 7025070: man page localization broken in jdk7
ogino
parents: 5865
diff changeset
  1018
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1019
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1020
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1021
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1022
この問題を解決するために、次のように\fBstatic\fRメソッド\fBm1\fRを呼び出すことができます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1023
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1024
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1025
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1026
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1027
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1028
\fBXLintStatic\&.m1();\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1029
 
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1030
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1031
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1032
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1033
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1034
あるいは、\fBstatic\fRキーワードをメソッド\fBm1\fRの宣言から削除することもできます。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1035
.RE
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1036
.PP
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1037
try
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1038
.RS 4
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1039
try\-with\-resources文を含む、\fBtry\fRブロックの使用に関する問題について警告します。たとえば、\fBtry\fRブロックで宣言されたリソース\fBac\fRが使用されないために、次の文に対して警告が生成されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1040
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1041
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1042
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1043
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1044
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1045
\fBtry ( AutoCloseable ac = getResource() ) {    // do nothing}\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1046
 
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1047
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1048
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1049
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1050
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1051
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1052
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1053
unchecked
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1054
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1055
Java言語仕様で指定されている未検査変換警告の詳細を示します。たとえば、次のようになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1056
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1057
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1058
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1059
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1061
\fBList l = new ArrayList<Number>();\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1062
\fBList<String> ls = l;       // unchecked warning\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1063
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1064
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1065
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1066
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1067
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1068
型の削除中、型\fBArrayList<Number>\fRおよび\fBList<String>\fRは、それぞれ\fBArrayList\fRおよび\fBList\fRになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1069
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1070
\fBls\fRコマンドには、パラメータ化された型\fBList<String>\fRが指定されています。\fBl\fRによって参照される\fBList\fRが\fBls\fRに割り当てられた場合、コンパイラは未検査警告を生成します。コンパイル時に、コンパイラおよびJVMは、\fBl\fRが\fBList<String>\fR型を参照するかどうかを判別できません。この場合、\fBl\fRは、\fBList<String>\fR型を参照しません。その結果、ヒープ汚染が発生します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1071
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1072
ヒープ汚染状態が発生するのは、\fBList\fRオブジェクト\fBl\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1073
(そのstatic型は\fBList<Number>\fR)が別の\fBList\fRオブジェクト\fBls\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1074
(異なるstatic型\fBList<String>\fRを持つ)に代入される場合です。しかし、コンパイラではこの代入をいまだに許可しています。総称をサポートしないJava SEのリリースとの後方互換性を確保するために、この代入を許可する必要があります。型の削除のため、\fBList<Number>\fRおよび\fBList<String>\fRは、両方\fBList\fRになります。その結果、コンパイラはオブジェクト\fBl\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1075
(\fBList\fRというraw型を持つ)をオブジェクト\fBls\fRに代入することを許可します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1076
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1077
.PP
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1078
varargs
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1079
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1080
可変引数(\fBvarargs\fR)メソッド、特に非具象化可能引数を含むものの使用が安全でないことを警告します。たとえば、次のようになります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1081
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1082
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1083
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1084
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1086
\fBpublic class ArrayBuilder {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1087
\fB  public static <T> void addToList (List<T> listArg, T\&.\&.\&. elements) {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1088
\fB    for (T x : elements) {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1089
\fB      listArg\&.add(x);\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1090
\fB    }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1091
\fB  }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1092
\fB}\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1093
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1094
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1095
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1096
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1097
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1098
\fB注意:\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1099
非具象化可能型は、型情報が実行時に完全に使用不可能な型です。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1100
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1101
コンパイラは、メソッド\fBArrayBuilder\&.addToList\fRの定義に関する次の警告を生成します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1102
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1103
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1104
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1105
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1106
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1107
\fBwarning: [varargs] Possible heap pollution from parameterized vararg type T\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1108
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1109
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1110
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1111
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1112
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1113
コンパイラは、varargsメソッドを検出すると、\fBvarargs\fRの仮パラメータを配列に変換します。しかし、Javaプログラミング言語では、パラメータ化された型の配列の作成を許可していません。メソッド\fBArrayBuilder\&.addToList\fRでは、コンパイラは\fBvarargs\fRの仮パラメータ\fBT\&.\&.\&.\fR要素を仮パラメータ\fBT[]\fR要素(配列)に変換します。しかし、型消去により、コンパイラは\fBvarargs\fRの仮パラメータを\fBObject[]\fR要素に変換します。その結果、ヒープ汚染が発生する可能性があります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1114
.RE
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1115
.SH "コマンド行引数ファイル"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1116
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1117
\fBjavac\fRコマンドを短くしたり簡潔にしたりするために、\fBjavac\fRコマンドに対する引数(\fB\-J\fRオプションを除く)を含む1つ以上のファイルを指定することができます。これにより、どのオペレーティング・システム上でも、任意の長さの\fBjavac\fRコマンドを作成できます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1118
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1119
引数ファイルには、\fBjavac\fRのオプションとソース・ファイル名を自由に組み合せて記述できます。ファイル内の引数は、空白または改行文字で区切ることができます。ファイル名に埋め込まれた空白がある場合、ファイル名全体を二重引用符で囲みます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1120
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1121
引数ファイル内のファイル名は、引数ファイルの位置ではなく、現在のディレクトリに相対的となります。これらのリストでは、ワイルドカード(*)は使用できません(たとえば、\fB*\&.java\fRとは指定できません)。アットマーク(@)を使用したファイルの再帰的な解釈はサポートされていません。また、\fB\-J\fRオプションもサポートされていません。このオプションは起動ツールに渡されますが、起動ツールでは引数ファイルをサポートしていないからです。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1122
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1123
\fBjavac\fRコマンドを実行するときに、各引数ファイルのパスと名前の先頭にアットマーク(@)文字を付けて渡します。\fBjavac\fRコマンドは、アットマーク(@)で始まる引数を見つけると、そのファイルの内容を展開して引数リストに挿入します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1124
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1125
\fB例 1 \fR単一の引数ファイル
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1126
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1127
\fBargfile\fRという名前の単一の引数ファイルを使用して、すべての\fBjavac\fR引数を格納する場合は、次のように指定します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1128
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1129
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1130
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1131
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1132
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1133
\fBjavac @argfile\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1134
 
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1135
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1136
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1137
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1138
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1139
この引数ファイルには、例2で示されている両方のファイルの内容を入れることができます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1140
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1141
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1142
\fB例 2 \fR2つの引数ファイル
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1143
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1144
\fBjavac\fRオプション用とソース・ファイル名用に、2つの引数ファイルを作成できます。次のリストには、行の継続文字はありません。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1145
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1146
次を含むoptionsという名前のファイルを作成します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1147
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1148
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1149
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1150
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1151
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1152
\fB\-d classes\fR
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1153
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1154
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1155
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1156
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1157
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1158
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1159
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1160
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1161
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1162
\fB\-g\fR
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1163
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1164
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1165
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1166
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1167
.sp
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1168
.if n \{\
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1169
.RS 4
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1170
.\}
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1171
.nf
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1172
\fB\-sourcepath /java/pubs/ws/1\&.3/src/share/classes\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1173
.fi
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1174
.if n \{\
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1175
.RE
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1176
.\}
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1177
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1178
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1179
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1180
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1181
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1182
 
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1183
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1184
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1185
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1186
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1187
次を含むclassesという名前のファイルを作成します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1188
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1189
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1190
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1191
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1192
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1193
\fBMyClass1\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1194
\fBMyClass2\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1195
\fBMyClass3\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1196
 
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1197
.fi
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1198
.if n \{\
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1199
.RE
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1200
.\}
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1201
それから、次のように\fBjavac\fRコマンドを実行します。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1202
.sp
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1203
.if n \{\
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1204
.RS 4
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1205
.\}
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1206
.nf
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1207
\fBjavac @options @classes\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1208
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1209
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1210
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1211
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1212
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1213
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1214
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1215
\fB例 3 \fRパスを使用した引数ファイル
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1216
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1217
引数ファイルはパスを指定できますが、ファイル内のすべてのファイル名は、(\fBpath1\fRや\fBpath2\fRではなく)次のように現在の作業ディレクトリに相対的となります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1218
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1219
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1220
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1221
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1222
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1223
\fBjavac @path1/options @path2/classes\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1224
 
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1225
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1226
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1227
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1228
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1229
.RE
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1230
.SH "注釈処理"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1231
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1232
\fBjavac\fRコマンドが注釈処理を直接サポートしているため、独立した注釈処理コマンドである\fBapt\fRを使用する必要がなくなりました。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1233
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1234
注釈プロセッサのAPIは、\fBjavax\&.annotation\&.processing\fRおよび\fBjavax\&.lang\&.model\fRパッケージとそのサブパッケージ内に定義されています。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1235
.SS "注釈処理を行う方法"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1236
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1237
\fB\-proc:none\fRオプションによって注釈処理が無効化されない限り、コンパイラは使用可能なすべての注釈プロセッサを検索します。検索パスは、\fB\-processorpath\fRオプションを使用して指定できます。パスを指定しない場合、ユーザー・クラス・パスが使用されます。プロセッサの検索は、検索パス上の\fBMETA\-INF/services/javax\&.annotation\&.processing\fR\&.Processorという名前のサービス・プロバイダ構成ファイルに基づいて行われます。このようなファイルには、使用するすべての注釈プロセッサの名前を、1行に1つずつ含めてください。また、別の方法として、\fB\-processor\fRオプションを使用してプロセッサを明示的に指定することもできます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1238
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1239
コンパイラは、コマンド行のソース・ファイルやクラスを走査することで、どのような注釈が存在しているかを確認し終わると、プロセッサに対して問合せを行い、それらのプロセッサがどの注釈を処理できるのかを確認します。一致するものが見つかった場合、そのプロセッサが呼び出されます。各プロセッサは、自身が処理する注釈を要求できます。その場合、それらの注釈に対する別のプロセッサを見つける試みは行われません。すべての注釈が要求されると、コンパイラはそれ以上プロセッサの検索を行いません。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1240
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1241
いずれかのプロセッサによって新しいソース・ファイルが生成されると、注釈処理の2回目のラウンドが開始されます。新しく生成されたすべてのソース・ファイルがスキャンされ、前回と同様に注釈が処理されます。以前のラウンドで呼び出されたプロセッサはすべて、後続のどのラウンドでも呼び出されます。これが、新しいソース・ファイルが生成されなくなるまで続きます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1242
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1243
あるラウンドで新しいソース・ファイルが生成されなかった場合、注釈プロセッサがあと1回のみ呼び出され、残りの処理を実行する機会が与えられます。最後に、\fB\-proc:only\fRオプションが使用されないかぎり、コンパイラは、元のソース・ファイルと生成されたすべてのソース・ファイルをコンパイルします。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1244
.SS "暗黙的にロードされたソース・ファイル"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1245
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1246
コンパイラは、一連のソース・ファイルをコンパイルする際に、別のソース・ファイルを暗黙的にロードすることが必要な場合があります。型の検索を参照してください。そのようなファイルは、現時点では注釈処理の対象になりません。デフォルトでは、注釈処理が実行され、かつ暗黙的にロードされた任意のソース・ファイルがコンパイルされた場合、コンパイラは警告を発行します。\fB\-implicit\fRオプションでは、警告を抑制する方法が提供されます。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1247
.SH "型の検索"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1248
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1249
ソース・ファイルをコンパイルするために、コンパイラは通常、型に関する情報を必要としますが、その型の定義はコマンド行で指定したソース・ファイルにありません。コンパイラは、ソース・ファイルで使用されているクラスまたはインタフェース、拡張されているクラスまたはインタフェース、あるいは実装されているクラスまたはインタフェースすべてについて、型の情報を必要とします。これには、ソース・ファイルで明示的には言及されていなくても、継承を通じて情報を提供するクラスとインタフェースも含まれます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1250
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1251
たとえば、サブクラス\fBjava\&.applet\&.Applet\fRを作成すると、\fBアプレット\fRの祖先のクラス(\fBjava\&.awt\&.Panel\fR、\fBjava\&.awt\&.Container\fR、\fBjava\&.awt\&.Component\fRおよび\fBjava\&.lang\&.Object\fR)を使用していることにもなります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1252
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1253
コンパイラは、型の情報が必要になると、その型を定義しているソース・ファイルまたはクラス・ファイルを検索します。まず、ブートストラップ・クラスと拡張機能クラスを検索し、続いてユーザー・クラス・パス(デフォルトでは現在のディレクトリ)を検索します。ユーザー・クラス・パスは、\fBCLASSPATH\fR環境変数を設定して定義するか、または\fB\-classpath\fRオプションを使用して定義します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1254
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1255
\fB\-sourcepath\fRオプションが設定されている場合、コンパイラは、指定されたパスからソース・ファイルを検索します。それ以外の場合、コンパイラは、ユーザー・クラス・パスからクラス・ファイルとソース・ファイルの両方を検索します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1256
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1257
\fB\-bootclasspath\fRオプションおよび\fB\-extdirs\fRオプションを使用して、別のブートストラップ・クラスや拡張機能クラスを指定できます。クロスコンパイル・オプションを参照してください。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1258
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1259
型の検索に成功したときに得られる結果は、クラス・ファイル、ソース・ファイル、またはその両方である場合があります。両方が見つかった場合、そのどちらを使用するかを\fB\-Xprefer\fRオプションでコンパイラに指示できます。\fBnewer\fRが指定された場合、コンパイラは2つのファイルのうち新しい方を使用します。\fBsource\fRが指定された場合、コンパイラはソース・ファイルを使用します。デフォルトは\fBnewer\fRです。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1260
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1261
型の検索自体によって、または\fB\-Xprefer\fRオプションが設定された結果として必要な型のソース・ファイルが見つかった場合、コンパイラはそのソース・ファイルを読み取り、必要な情報を取得します。デフォルトでは、コンパイラはソース・ファイルのコンパイルも行います。\fB\-implicit\fRオプションを使用してその動作を指定できます。\fBnone\fRが指定された場合、ソース・ファイルに対してクラス・ファイルは生成されません。\fBclass\fRが指定された場合、ソース・ファイルに対してクラス・ファイルが生成されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1262
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1263
コンパイラは、注釈処理が完了するまで、ある型情報の必要性を認識しない場合があります。型情報がソース・ファイル内に見つかり、かつ\fB\-implicit\fRオプションが指定されていない場合、コンパイラによって、そのファイルが注釈処理の対象とならずにコンパイルされることが警告されます。この警告を無効にするには、(そのファイルが注釈処理の対象となるように)そのファイルをコマンド行に指定するか、あるいはそのようなソース・ファイルに対してクラス・ファイルを生成する必要があるかどうかを\fB\-implicit\fRオプションを使用して指定します。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1264
.SH "プログラマティック・インタフェース"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1265
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1266
\fBjavac\fRコマンドは、\fBjavax\&.tools\fRパッケージ内のクラスとインタフェースによって定義される新しいJava Compiler APIをサポートします。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1267
.SS "例"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1268
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1269
コマンド行引数を指定するようにコンパイルするには、次の構文を使用します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1270
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1271
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1272
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1273
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1274
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1275
\fBJavaCompiler javac = ToolProvider\&.getSystemJavaCompiler();\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1276
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1277
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1278
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1279
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1280
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1281
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1282
例では、診断を標準出力ストリームに書き込み、コマンド行からの呼出し時に\fBjavac\fRが指定する終了コードを返します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1283
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1284
\fBjavax\&.tools\&.JavaCompiler\fRインタフェースの他のメソッドを使用すると、診断の処理やファイルの読取り元/書込み先の制御などを行うことができます。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1285
.SS "旧式のインタフェース"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1286
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1287
\fB注意:\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1288
このAPIは、後方互換性のためにのみ保持されています。すべての新しいコードは、新しいJava Compiler APIを使用する必要があります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1289
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1290
次のように、\fBcom\&.sun\&.tools\&.javac\&.Main\fRクラスには、プログラムからコンパイラを呼び出すためのstaticメソッドが2つ用意されています。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1291
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1292
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1293
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1294
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1295
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1296
\fBpublic static int compile(String[] args);\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1297
\fBpublic static int compile(String[] args, PrintWriter out);\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1298
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1299
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1300
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1301
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1302
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1303
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1304
\fBargs\fRパラメータは、通常コンパイラに渡される任意のコマンド行引数を表しています。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1305
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1306
\fBout\fRパラメータは、コンパイラの診断出力の宛先を示します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1307
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1308
\fBreturn\fR値は、\fBjavac\fRの\fBexit\fR値と同じです。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1309
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1310
\fB注意:\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1311
名前が\fBcom\&.sun\&.tools\&.javac\fRで始まるパッケージ(\fBcom\&.sun\&.tools\&.javac\fRのサブパッケージ)で検出される他のすべてのクラスおよびメソッドは、完全に内部用であり、いつでも変更される可能性があります。
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1312
.SH "例"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1313
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1314
\fB例 1 \fR簡単なプログラムのコンパイル
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1315
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1316
この例では、greetingsディレクトリで\fBHello\&.java\fRソース・ファイルをコンパイルする方法を示しています。\fBHello\&.java\fRで定義されたクラスは、\fBgreetings\&.Hello\fRと呼ばれます。greetingsディレクトリは、ソース・ファイルとクラス・ファイルの両方があるパッケージ・ディレクトリで、現在のディレクトリのすぐ下にあります。これにより、デフォルトのユーザー・クラス・パスを使用できるようになります。また、\fB\-d\fRオプションを使用して別の出力先ディレクトリを指定する必要もありません。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1317
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1318
\fBHello\&.java\fR内のソース・コードは次のとおりです。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1319
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1320
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1321
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1322
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1323
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1324
\fBpackage greetings;\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1325
\fB \fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1326
\fBpublic class Hello {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1327
\fB    public static void main(String[] args) {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1328
\fB        for (int i=0; i < args\&.length; i++) {\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1329
\fB            System\&.out\&.println("Hello " + args[i]);\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1330
\fB        }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1331
\fB    }\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1332
\fB}\fR
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1333
 
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1334
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1335
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1336
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1337
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1338
greetings\&.Helloのコンパイル:
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1339
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1340
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1341
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1342
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1343
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1344
\fBjavac greetings/Hello\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1345
 
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1346
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1347
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1348
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1349
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1350
\fBgreetings\&.Hello\fRの実行:
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1351
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1352
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1353
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1354
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1355
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1356
\fBjava greetings\&.Hello World Universe Everyone\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1357
\fBHello World\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1358
\fBHello Universe\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1359
\fBHello Everyone\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1360
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1361
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1362
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1363
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1364
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1365
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1366
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1367
\fB例 2 \fR複数のソース・ファイルのコンパイル
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1368
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1369
この例では、\fBgreetings\fRパッケージのソース・ファイル\fBAloha\&.java\fR、\fBGutenTag\&.java\fR、\fBHello\&.java\fRおよび\fBHi\&.java\fRをコンパイルします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1370
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1371
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1372
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1373
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1374
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1375
\fB% javac greetings/*\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1376
\fB% ls greetings\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1377
\fBAloha\&.class         GutenTag\&.class      Hello\&.class         Hi\&.class\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1378
\fBAloha\&.java          GutenTag\&.java       Hello\&.java          Hi\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1379
 
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1380
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1381
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1382
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1383
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1384
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1385
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1386
\fB例 3 \fRユーザー・クラス・パスの指定
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1387
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1388
前述の例のソース・ファイルのうち1つを変更した後に、そのファイルを再コンパイルします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1389
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1390
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1391
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1392
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1393
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1394
\fBpwd\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1395
\fB/examples\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1396
\fBjavac greetings/Hi\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1397
 
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1398
.fi
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1399
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1400
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1401
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1402
\fBgreetings\&.Hi\fRは\fBgreetings\fRパッケージ内の他のクラスを参照しているため、コンパイラはこれらの他のクラスを探す必要があります。デフォルトのユーザー・クラス・パスはパッケージ・ディレクトリを含むディレクトリであるため、前述の例は動作します。現在のディレクトリを気にせずにこのファイルを再コンパイルする場合、\fBCLASSPATH\fRを設定して、ユーザー・クラス・パスに例のディレクトリを追加します。この例では、\fB\-classpath\fRオプションを使用しています。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1403
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1404
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1405
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1406
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1407
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1408
\fBjavac \-classpath /examples /examples/greetings/Hi\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1409
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1410
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1411
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1412
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1413
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1414
\fBgreetings\&.Hi\fRを変更してバナー・ユーティリティを使用するようにした場合、 そのユーティリティもユーザー・クラス・パスを通じてアクセスできるようになっている必要があります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1415
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1416
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1417
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1418
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1419
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1420
\fBjavac \-classpath /examples:/lib/Banners\&.jar \e\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1421
\fB            /examples/greetings/Hi\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1422
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1423
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1424
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1425
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1426
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1427
\fBgreetings\fRパッケージでクラスを実行するには、プログラムは\fBgreetings\fRパッケージ、および\fBgreetings\fRクラスが使用するクラスにアクセスする必要があります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1428
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1429
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1430
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1431
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1432
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1433
\fBjava \-classpath /examples:/lib/Banners\&.jar greetings\&.Hi\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1434
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1435
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1436
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1437
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1438
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1439
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1440
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1441
\fB例 4 \fRソース・ファイルとクラス・ファイルの分離
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1442
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1443
次の例では、\fBjavac\fRを使用して、JVM 1\&.7上で実行するコードをコンパイルします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1444
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1445
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1446
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1447
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1448
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1449
\fBjavac \-source 1\&.7 \-target 1\&.7 \-bootclasspath jdk1\&.7\&.0/lib/rt\&.jar \e \fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1450
\fB\-extdirs "" OldCode\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1451
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1452
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1453
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1454
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1455
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1456
\fB\-source 1\&.7\fRオプションにより、\fBOldCode\&.java\fRのコンパイルにはリリース1\&.7(または7)のJavaプログラミング言語が使用されます。\fB\-target 1\&.7\fRオプションにより、JVM 1\&.7と互換性のあるクラス・ファイルが生成されます。ほとんどの場合、\fB\-target\fRオプションの値は\fB\-source\fRオプションの値になります。この例では、\fB\-target\fRオプションを省略できます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1457
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1458
\fB\-bootclasspath\fRオプションを使用して、適切なバージョンのブートストラップ・クラス(\fBrt\&.jar\fRライブラリ)を指定する必要があります。指定しない場合は、コンパイラによって次の警告が生成されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1459
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1460
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1461
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1462
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1463
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1464
\fBjavac \-source 1\&.7 OldCode\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1465
\fBwarning: [options] bootstrap class path not set in conjunction with \fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1466
\fB\-source 1\&.7\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1467
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1468
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1469
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1470
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1471
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1472
適切なバージョンのブートストラップ・クラスを指定しない場合、コンパイラは古い言語仕様(この例では、バージョン1\&.7のJavaプログラミング言語)を新しいブートストラップ・クラスと組み合せて使用します。その結果、存在しないメソッドへの参照が含まれていることがあるため、クラス・ファイルが古いプラットフォーム(この場合はJava SE 7)で動作しない可能性があります。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1473
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1474
.PP
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1475
\fB例 5 \fRクロス・コンパイル
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1476
.RS 4
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1477
この例では、\fBjavac\fRを使用して、JVM 1\&.7上で実行するコードをコンパイルします。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1478
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1479
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1480
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1481
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1482
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1483
\fBjavac \-source 1\&.7 \-target 1\&.7 \-bootclasspath jdk1\&.7\&.0/lib/rt\&.jar \e\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1484
\fB            \-extdirs "" OldCode\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1485
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1486
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1487
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1488
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1489
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1490
\fB \-source 1\&.7\fRオプションにより、OldCode\&.javaのコンパイルにはリリース1\&.7(または7)のJavaプログラミング言語が使用されます。\fB\-target 1\&.7\fRオプションにより、JVM 1\&.7と互換性のあるクラス・ファイルが生成されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1491
.sp
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1492
\fB\-bootclasspath\fRオプションを使用して、適切なバージョンのブートストラップ・クラス(\fBrt\&.jar\fRライブラリ)を指定する必要があります。指定しない場合は、コンパイラによって次の警告が生成されます。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1493
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1494
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1495
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1496
.\}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1497
.nf
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1498
\fBjavac \-source 1\&.7 OldCode\&.java\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1499
\fBwarning: [options] bootstrap class path not set in conjunction with \-source 1\&.7\fR
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1500
 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1501
.fi
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1502
.if n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1503
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1504
.\}
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1505
適切なバージョンのブートストラップ・クラスを指定しない場合、コンパイラは古い言語仕様を新しいブートストラップ・クラスと組み合せて使用します。この組合せは、存在しないメソッドへの参照が含まれていることがあるため、クラス・ファイルが古いプラットフォーム(この場合はJava SE 7)で動作しない可能性があります。この例では、コンパイラはJavaプログラミング言語のリリース1\&.7を使用します。
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1506
.RE
31876
91b22707521a 8131105: Header Template for nroff man pages *.1 files contains errors
mfang
parents: 30373
diff changeset
  1507
.SH "関連項目"
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1508
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1509
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1510
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1511
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1512
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1513
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1514
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1515
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1516
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1517
java(1)
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1518
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1519
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1520
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1521
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1522
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1523
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1524
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1525
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1526
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1527
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1528
jdb(1)
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1529
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1530
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1531
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1532
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1533
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1534
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1535
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1536
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1537
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1538
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1539
javah(1)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1540
.RE
23600
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1541
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1542
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1543
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1544
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1545
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1546
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1547
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1548
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1549
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1550
javadoc(1)
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1551
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1552
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1553
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1554
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1555
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1556
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1557
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1558
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1559
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1560
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1561
jar(1)
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1562
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1563
.sp
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1564
.RS 4
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1565
.ie n \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1566
\h'-04'\(bu\h'+03'\c
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1567
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1568
.el \{\
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1569
.sp -1
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1570
.IP \(bu 2.3
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1571
.\}
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1572
jdb(1)
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1573
.RE
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1574
.br
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1575
'pl 8.5i
d21826f6c789 8026570: NLS: jdk8 man page update
mfang
parents: 9566
diff changeset
  1576
'bp