1 #
  2 # Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved.
  3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4 #
  5 # This code is free software; you can redistribute it and/or modify it
  6 # under the terms of the GNU General Public License version 2 only, as
  7 # published by the Free Software Foundation.  Oracle designates this
  8 # particular file as subject to the "Classpath" exception as provided
  9 # by Oracle in the LICENSE file that accompanied this code.
 10 #
 11 # This code is distributed in the hope that it will be useful, but WITHOUT
 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 14 # version 2 for more details (a copy is included in the LICENSE file that
 15 # accompanied this code).
 16 #
 17 # You should have received a copy of the GNU General Public License version
 18 # 2 along with this work; if not, write to the Free Software Foundation,
 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 20 #
 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 22 # or visit www.oracle.com if you need additional information or have any
 23 # questions.
 24 #
 25 
 26 ## tool
 27 
 28 javac.description=read Java class and interface definitions and compile them into bytecode and class files
 29 
 30 ## standard options
 31 
 32 javac.opt.g=\
 33     Generate all debugging info
 34 javac.opt.g.none=\
 35     Generate no debugging info
 36 javac.opt.g.lines.vars.source=\
 37     Generate only some debugging info
 38 javac.opt.nowarn=\
 39     Generate only mandatory warnings
 40 javac.opt.verbose=\
 41     Output messages about what the compiler is doing
 42 javac.opt.deprecation=\
 43     Output source locations where deprecated APIs are used
 44 javac.opt.classpath=\
 45     Specify where to find user class files and annotation processors
 46 javac.opt.modulepath=\
 47     Specify where to find application modules
 48 javac.opt.sourcepath=\
 49     Specify where to find input source files
 50 javac.opt.m=\
 51     Compile only the specified module(s), check timestamps
 52 javac.opt.modulesourcepath=\
 53     Specify where to find input source files for multiple modules
 54 javac.opt.bootclasspath=\
 55     Override location of bootstrap class files
 56 javac.opt.system=\
 57     Override location of system modules
 58 javac.opt.upgrademodulepath=\
 59     Override location of upgradeable modules
 60 javac.opt.endorseddirs=\
 61     Override location of endorsed standards path
 62 javac.opt.extdirs=\
 63     Override location of installed extensions
 64 javac.opt.processorpath=\
 65     Specify where to find annotation processors
 66 javac.opt.processormodulepath=\
 67     Specify a module path where to find annotation processors
 68 javac.opt.processor=\
 69     Names of the annotation processors to run;\n\
 70     bypasses default discovery process
 71 javac.opt.parameters=\
 72     Generate metadata for reflection on method parameters
 73 javac.opt.proc.none.only=\
 74     Control whether annotation processing and/or compilation is done.
 75 javac.opt.d=\
 76     Specify where to place generated class files
 77 javac.opt.sourceDest=\
 78     Specify where to place generated source files
 79 javac.opt.headerDest=\
 80     Specify where to place generated native header files
 81 javac.opt.J=\
 82     Pass <flag> directly to the runtime system
 83 javac.opt.encoding=\
 84     Specify character encoding used by source files
 85 javac.opt.profile=\
 86     Check that API used is available in the specified profile.\n\
 87     This option is deprecated and may be removed in a future release.
 88 javac.opt.target=\
 89     Generate class files suitable for the specified Java SE release.\n\
 90     Supported releases: \n    {0}
 91 javac.opt.release=\
 92     Compile for the specified Java SE release.\n\
 93     Supported releases: \n    {0}
 94 javac.opt.source=\
 95     Provide source compatibility with the specified Java SE release.\n\
 96     Supported releases: \n    {0}
 97 javac.opt.Werror=\
 98     Terminate compilation if warnings occur
 99 javac.opt.A=\
100     Options to pass to annotation processors
101 javac.opt.implicit=\
102     Specify whether to generate class files for implicitly referenced files
103 javac.opt.pkginfo=\
104     Specify handling of package-info files
105 javac.opt.multi-release=\
106     Specify which release to use in multi-release jars
107 javac.opt.arg.class=\
108     <class>
109 javac.opt.arg.class.list=\
110     <class1>[,<class2>,<class3>...]
111 javac.opt.arg.flag=\
112     <flag>
113 javac.opt.arg.key.equals.value=\
114     key[=value]
115 javac.opt.arg.path=\
116     <path>
117 javac.opt.arg.mspath=\
118     <module-source-path>
119 javac.opt.arg.m=\
120     <module>(,<module>)*
121 javac.opt.arg.jdk=\
122     <jdk>|none
123 javac.opt.arg.dirs=\
124     <dirs>
125 javac.opt.arg.directory=\
126     <directory>
127 javac.opt.arg.encoding=\
128     <encoding>
129 javac.opt.arg.profile=\
130     <profile>
131 javac.opt.arg.release=\
132     <release>
133 javac.opt.arg.number=\
134     <number>
135 javac.opt.plugin=\
136     Name and optional arguments for a plug-in to be run
137 javac.opt.arg.plugin=\
138     "name args"
139 javac.opt.arg.multi-release=\
140     <release>
141 javac.opt.arg.default.module.for.created.files=\
142     <module-name>
143 
144 ## extended options
145 
146 javac.opt.maxerrs=\
147     Set the maximum number of errors to print
148 javac.opt.maxwarns=\
149     Set the maximum number of warnings to print
150 javac.opt.nogj=\
151     Don''t accept generics in the language
152 javac.opt.moreinfo=\
153     Print extended information for type variables
154 javac.opt.printsearch=\
155     Print information where classfiles are searched
156 javac.opt.prompt=\
157     Stop after each error
158 javac.opt.s=\
159     Emit java sources instead of classfiles
160 javac.opt.version=\
161     Version information
162 javac.opt.arg.pathname=\
163     <pathname>
164 javac.opt.arg.file=\
165     <filename>
166 javac.opt.Xbootclasspath.p=\
167     Prepend to the bootstrap class path
168 javac.opt.Xbootclasspath.a=\
169     Append to the bootstrap class path
170 javac.opt.Xlint=\
171     Enable recommended warning categories
172 javac.opt.Xlint.all=\
173     Enable all warning categories
174 javac.opt.Xlint.none=\
175     Disable all warning categories
176 #L10N: do not localize: -Xlint
177 javac.opt.arg.Xlint=\
178     <key>(,<key>)*
179 javac.opt.Xlint.custom=\
180     Warning categories to enable or disable, separated by comma.\n\
181     Precede a key by ''-'' to disable the specified warning.\n\
182     Use --help-lint to see the supported keys.
183 javac.opt.Xlint.desc.auxiliaryclass=\
184     Warn about an auxiliary class that is hidden in a source file, and is used from other files.
185 
186 javac.opt.Xlint.desc.cast=\
187     Warn about use of unnecessary casts.
188 
189 javac.opt.Xlint.desc.classfile=\
190     Warn about issues related to classfile contents.
191 
192 javac.opt.Xlint.desc.dangling-doc-comments=\
193     Warn about dangling documentation comments, not attached to any declaration.
194 
195 javac.opt.Xlint.desc.missing-explicit-ctor=\
196     Warn about missing explicit constructors in public and protected classes in exported packages.
197 
198 javac.opt.Xlint.desc.deprecation=\
199     Warn about use of deprecated items.
200 
201 javac.opt.Xlint.desc.dep-ann=\
202     Warn about items marked as deprecated in JavaDoc but not using the @Deprecated annotation.
203 
204 javac.opt.Xlint.desc.divzero=\
205     Warn about division by constant integer 0.
206 
207 javac.opt.Xlint.desc.empty=\
208     Warn about empty statement after if.
209 
210 javac.opt.Xlint.desc.exports=\
211     Warn about issues regarding module exports.
212 
213 javac.opt.Xlint.desc.fallthrough=\
214     Warn about falling through from one case of a switch statement to the next.
215 
216 javac.opt.Xlint.desc.finally=\
217     Warn about finally clauses that do not terminate normally.
218 
219 javac.opt.Xlint.desc.incubating=\
220     Warn about use of incubating modules.
221 
222 javac.opt.Xlint.desc.initialization=\
223     Warn about code in identity classes that wouldn''t be allowed in early\n\
224 \                         construction due to a this dependency.
225 
226 javac.opt.Xlint.desc.lossy-conversions=\
227     Warn about possible lossy conversions in compound assignment.
228 
229 javac.opt.Xlint.desc.module=\
230     Warn about module system related issues.
231 
232 javac.opt.Xlint.desc.migration=\
233     Warn about issues related to migration of JDK classes.
234 
235 javac.opt.Xlint.desc.opens=\
236     Warn about issues regarding module opens.
237 
238 javac.opt.Xlint.desc.options=\
239     Warn about issues relating to use of command line options.
240 
241 javac.opt.Xlint.desc.output-file-clash=\
242     Warn when an output file is overwritten during compilation. This can occur, for example,\n\
243 \                         on case-insensitive filesystems. Covers class files, native header files, and source files.
244 
245 javac.opt.Xlint.desc.overloads=\
246     Warn about issues regarding method overloads.
247 
248 javac.opt.Xlint.desc.overrides=\
249     Warn about issues regarding method overrides.
250 
251 javac.opt.Xlint.desc.path=\
252     Warn about invalid path elements on the command line.
253 
254 javac.opt.Xlint.desc.processing=\
255     Warn about issues regarding annotation processing.
256 
257 javac.opt.Xlint.desc.rawtypes=\
258     Warn about use of raw types.
259 
260 javac.opt.Xlint.desc.removal=\
261     Warn about use of API that has been marked for removal.
262 
263 javac.opt.Xlint.desc.requires-automatic=\
264     Warn about use of automatic modules in the requires clauses.
265 
266 javac.opt.Xlint.desc.requires-transitive-automatic=\
267     Warn about automatic modules in requires transitive.
268 
269 javac.opt.Xlint.desc.serial=\
270     Warn about Serializable classes that do not have a serialVersionUID field. \n\
271 \                         Also warn about other suspect declarations in Serializable and Externalizable classes and interfaces.
272 
273 javac.opt.Xlint.desc.static=\
274     Warn about accessing a static member using an instance.
275 
276 javac.opt.Xlint.desc.strictfp=\
277     Warn about unnecessary use of the strictfp modifier.
278 
279 javac.opt.Xlint.desc.text-blocks=\
280     Warn about inconsistent white space characters in text block indentation.
281 
282 javac.opt.Xlint.desc.this-escape=\
283     Warn when a constructor invokes a method that could be overriden in an external subclass.\n\
284 \                         Such a method would execute before the subclass constructor completes its initialization.
285 
286 javac.opt.Xlint.desc.try=\
287     Warn about issues relating to use of try blocks (i.e. try-with-resources).
288 
289 javac.opt.Xlint.desc.unchecked=\
290     Warn about unchecked operations.
291 
292 javac.opt.Xlint.desc.varargs=\
293     Warn about potentially unsafe vararg methods.
294 
295 javac.opt.Xlint.desc.preview=\
296     Warn about use of preview language features.
297 
298 javac.opt.Xlint.desc.restricted=\
299     Warn about use of restricted methods.
300 
301 # L10N: do not localize: identity synchronization
302 javac.opt.Xlint.desc.synchronization=\
303     Warn about synchronization attempts on instances of value-based classes.\n\
304 \                         This key is a deprecated alias for ''identity'', which has the same uses and\n\
305 \                         effects. Users are encouraged to use the ''identity'' category for all future\n\
306 \                         and existing uses of ''synchronization''.
307 
308 javac.opt.Xlint.desc.identity=\
309     Warn about uses of value-based classes where an identity class is expected.
310 
311 javac.opt.Xdoclint=\
312     Enable recommended checks for problems in javadoc comments
313 # L10N: do not localize: all none
314 javac.opt.Xdoclint.subopts = \
315     (all|none|[-]<group>)[/<access>]
316 
317 # L10N: do not localize: accessibility html missing reference syntax
318 # L10N: do not localize: public protected package private
319 javac.opt.Xdoclint.custom=\
320     Enable or disable specific checks for problems in javadoc comments,\n\
321     where <group> is one of accessibility, html, missing, reference,\n\
322     or syntax, and <access> is one of public, protected, package,\n\
323     or private.
324 
325 javac.opt.Xdoclint.package.args = \
326     [-]<packages>(,[-]<package>)*
327 
328 javac.opt.Xdoclint.package.desc=\
329     Enable or disable checks in specific packages. Each <package> is either\n\
330     a qualified package name or a package name prefix followed by ''.*'',\n\
331     which expands to all sub-packages of the given package. Each <package>\n\
332     can be prefixed with ''-'' to disable checks for the specified package(s).
333 
334 javac.opt.Xstdout=\
335     Redirect standard output
336 javac.opt.X=\
337     Print help on extra options
338 javac.opt.help=\
339     Print this help message
340 javac.opt.help.lint=\
341     Print the supported keys for -Xlint
342 javac.opt.help.lint.header=\
343     The supported keys for -Xlint are:
344 javac.opt.print=\
345     Print out a textual representation of specified types
346 javac.opt.printRounds=\
347     Print information about rounds of annotation processing
348 javac.opt.printProcessorInfo=\
349     Print information about which annotations a processor\n\
350     is asked to process
351 javac.opt.userpathsfirst=\
352     Search classpath and sourcepath for classes before the bootclasspath instead of after
353 javac.opt.prefer=\
354     Specify which file to read when both a source file and class file\n\
355     are found for an implicitly compiled class
356 javac.opt.preview=\
357     Enable preview language features.\n\
358     To be used in conjunction with either -source or --release.
359 javac.opt.AT=\
360     Read options and filenames from file
361 javac.opt.diags=\
362     Select a diagnostic mode
363 javac.opt.addExports=\
364     Specify a package to be considered as exported from its\n\
365     defining module to additional modules, or to all unnamed modules\n\
366     if <other-module> is ALL-UNNAMED.
367 javac.opt.arg.addExports=\
368     <module>/<package>=<other-module>(,<other-module>)*
369 javac.opt.addReads=\
370     Specify additional modules to be considered as required by\n\
371     a given module; <other-module> may be ALL-UNNAMED to require\n\
372     the unnamed module.
373 javac.opt.arg.addReads=\
374     <module>=<other-module>(,<other-module>)*
375 javac.opt.patch=\
376     Override or augment a module with classes and resources\n\
377     in JAR files or directories
378 javac.opt.arg.patch=\
379     <module>=<file>(:<file>)*
380 javac.opt.addmods=\
381     Root modules to resolve in addition to the initial modules,\n\
382     or all modules on the module path if <module> is ALL-MODULE-PATH.
383 javac.opt.arg.addmods=\
384     <module>(,<module>)*
385 javac.opt.limitmods=\
386     Limit the universe of observable modules
387 javac.opt.arg.limitmods=\
388     <module>(,<module>)*
389 javac.opt.module.version=\
390     Specify version of modules that are being compiled
391 javac.opt.arg.module.version=\
392     <version>
393 javac.opt.inherit_runtime_environment=\
394     Inherit module system configuration options from the runtime environment.
395 javac.opt.default.module.for.created.files=\
396     Fallback target module for files created by annotation processors,\n\
397     if none specified or inferred.
398 javac.opt.lineDocComments=\
399     Disable support for documentation comments with lines beginning ''///''
400 
401 ## messages
402 
403 javac.msg.usage.header=\
404 Usage: {0} <options> <source files>\n\
405 where possible options include:
406 
407 javac.msg.usage=\
408     Usage: {0} <options> <source files>\n\
409     use --help for a list of possible options
410 
411 javac.msg.usage.nonstandard.footer=\
412 These extra options are subject to change without notice.
413 
414 javac.msg.bug=\
415 An exception has occurred in the compiler ({0}). \
416 Please file a bug against the Java compiler via the Java bug reporting page (https://bugreport.java.com) \
417 after checking the Bug Database (https://bugs.java.com) for duplicates. \
418 Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
419 
420 javac.msg.io=\
421 \n\nAn input/output error occurred.\n\
422 Consult the following stack trace for details.\n
423 
424 javac.msg.proc.annotation.uncaught.exception=\
425 \n\nAn annotation processor threw an uncaught exception.\n\
426 Consult the following stack trace for details.\n
427 
428 javac.msg.plugin.uncaught.exception=\
429 \n\nA plugin threw an uncaught exception.\n\
430 Consult the following stack trace for details.\n
431 
432 javac.msg.resource=\
433 \n\nThe system is out of resources.\n\
434 Consult the following stack trace for details.\n
435 
436 javac.version={0} {1}
437 javac.fullVersion={0} full version "{1}"
438 
439 javac.msg.parameters.output=\
440 printing javac parameters to: {0}
441 
442 javac.msg.parameters.output.error=\
443 error while trying to print javac parameters to: {0}, parameters will follow: