1 #
   2 # Copyright (c) 1999, 2018, 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 # Messages in this file which use "placeholders" for values (e.g. {0}, {1})
  27 # are preceded by a stylized comment describing the type of the corresponding
  28 # values.
  29 # The simple types currently in use are:
  30 #
  31 # annotation        annotation compound
  32 # boolean           true or false
  33 # diagnostic        a sub-message; see compiler.misc.*
  34 # fragment          similar to 'message segment', but with more specific type
  35 # modifier          a Java modifier; e.g. public, private, protected
  36 # file              a file URL
  37 # file object       a file URL - similar to 'file' but typically used for source/class files, hence more specific
  38 # flag              a Flags.Flag instance
  39 # name              a name, typically a Java identifier
  40 # number            an integer
  41 # option name       the name of a command line option
  42 # path              a path
  43 # profile           a profile name
  44 # source            a source version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.code.Source
  45 # source version    a source version number, such as 1.5, 1.6, 1.7, taken from a javax.lang.model.SourceVersion
  46 # string            a general string
  47 # symbol            the name of a declared type
  48 # symbol kind       the kind of a symbol (i.e. method, variable)
  49 # kind name         an informative description of the kind of a declaration; see compiler.misc.kindname.*
  50 # target            a target version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.jvm.Target
  51 # token             the name of a non-terminal in source code; see compiler.misc.token.*
  52 # tree tag          the name of a non-terminal in source code; see compiler.misc.token.*
  53 # type              a Java type; e.g. int, X, X<T>
  54 # url               a URL
  55 # object            a Java object (unspecified)
  56 # unused            the value is not used in this message
  57 #
  58 # The following compound types are also used:
  59 #
  60 # collection of X   a comma-separated collection of items; e.g. collection of type
  61 # list of X         a comma-separated list of items; e.g. list of type
  62 # set of X          a comma-separated set of items; e.g. set of modifier
  63 #
  64 # These may be composed:
  65 #
  66 # list of type or message segment
  67 #
  68 # The following type aliases are supported:
  69 #
  70 # message segment --> diagnostic or fragment
  71 # file name --> file, path or file object
  72 #
  73 # Custom comments are supported in parenthesis i.e.
  74 #
  75 # number (classfile major version)
  76 #
  77 # These comments are used internally in order to generate an enum-like class declaration containing
  78 # a method/field for each of the diagnostic keys listed here. Those methods/fields can then be used
  79 # by javac code to build diagnostics in a type-safe fashion.
  80 #
  81 # In addition, these comments are verified by the jtreg test test/tools/javac/diags/MessageInfo,
  82 # using info derived from the collected set of examples in test/tools/javac/diags/examples.
  83 # MessageInfo can also be run as a standalone utility providing more facilities
  84 # for manipulating this file. For more details, see MessageInfo.java.
  85 
  86 ##
  87 ## errors
  88 ##
  89 
  90 # 0: symbol
  91 compiler.err.abstract.cant.be.instantiated={0}是抽象的; 无法实例化
  92 
  93 compiler.err.abstract.meth.cant.have.body=抽象方法不能有主体
  94 
  95 # 0: kind name, 1: symbol
  96 compiler.err.already.annotated={0} {1}已进行注释
  97 
  98 # 0: kind name, 1: symbol, 2: kind name, 3: symbol
  99 compiler.err.already.defined=已在{2} {3}中定义了{0} {1}
 100 
 101 # 0: kind name, 1: symbol, 2: kind name, 3: kind name, 4: symbol
 102 compiler.err.already.defined.in.clinit=已在{3} {4}的{2}中定义了{0} {1}
 103 
 104 # 0: symbol
 105 compiler.err.already.defined.single.import={0}的 single-type-import 已定义具有相同简名的类型
 106 
 107 # 0: symbol
 108 compiler.err.already.defined.static.single.import={0}的静态 single-type-import 已定义具有相同简名的类型
 109 
 110 # 0: symbol
 111 compiler.err.already.defined.this.unit=已在该编译单元中定义{0}
 112 
 113 # 0: type, 1: list of name
 114 compiler.err.annotation.missing.default.value=对于元素 ''{1}'', 注释 @{0} 缺少默认值
 115 
 116 # 0: type, 1: list of name
 117 compiler.err.annotation.missing.default.value.1=对于元素{1}, 注释 @{0} 缺少默认值
 118 
 119 # 0: type
 120 compiler.err.annotation.not.valid.for.type=注释对于类型{0}的元素无效
 121 
 122 compiler.err.annotation.type.not.applicable=注释类型不适用于该类型的声明
 123 
 124 # 0: type
 125 compiler.err.annotation.type.not.applicable.to.type=注释 @{0} 在此类型上下文中不适用
 126 
 127 compiler.err.annotation.value.must.be.annotation=注释值必须为注释
 128 
 129 compiler.err.annotation.value.must.be.class.literal=注释值必须为类文字
 130 
 131 compiler.err.annotation.value.must.be.name.value=注释值必须采用 ''name=value'' 格式
 132 
 133 compiler.err.annotation.value.not.allowable.type=注释值不是允许的类型
 134 
 135 compiler.err.expression.not.allowable.as.annotation.value=表达式不允许用作注释值
 136 
 137 compiler.err.anon.class.impl.intf.no.args=匿名类实现接口; 不能有参数
 138 
 139 compiler.err.anon.class.impl.intf.no.typeargs=匿名类实现接口; 不能具有类型参数
 140 
 141 compiler.err.anon.class.impl.intf.no.qual.for.new=匿名类实现接口; 不能有限定符 - 对于新
 142 
 143 compiler.err.cant.inherit.from.anon=无法从匿名类继承
 144 
 145 # 0: symbol, 1: symbol, 2: symbol
 146 compiler.err.array.and.varargs=无法在{2}中同时声明{0}和{1}
 147 
 148 compiler.err.array.dimension.missing=缺少数组维
 149 
 150 compiler.err.illegal.array.creation.both.dimension.and.initialization=同时使用维表达式和初始化创建数组是非法的
 151 
 152 # 0: type
 153 compiler.err.array.req.but.found=需要数组, 但找到{0}
 154 
 155 compiler.err.attribute.value.must.be.constant=元素值必须为常量表达式
 156 
 157 # 0: string (statement type)
 158 compiler.err.bad.initializer={0}的初始化程序错误
 159 
 160 compiler.err.break.outside.switch.loop=在 switch 或 loop 外部中断
 161 
 162 compiler.err.break.missing.value=缺少中断值
 163 
 164 compiler.err.break.outside.switch.expression=break 在闭合的 switch 表达式外部
 165 
 166 compiler.err.continue.outside.switch.expression=continue 在闭合的 switch 表达式外部
 167 
 168 compiler.err.return.outside.switch.expression=return 在闭合的 switch 表达式外部
 169 
 170 compiler.err.rule.completes.normally=switch 规则完结但没有提供值\n(switch 表达式中的 switch 规则必须提供值或抛出)
 171 
 172 compiler.err.switch.expression.completes.normally=switch 表达式完结但没有提供值\n(switch 表达式必须为所有可能的输入值提供值或抛出)
 173 
 174 # 0: name
 175 compiler.err.break.ambiguous.target=对 ''{0}'' 的引用不明确\n(''{0}'' 同时是标签和表达式)
 176 
 177 # 0: tree tag
 178 compiler.err.break.expr.not.immediate=''{0}'' 中不支持值中断
 179 
 180 compiler.err.break.complex.value.no.switch.expression=意外值中断
 181 
 182 compiler.err.switch.expression.empty=switch 表达式中没有任何 case 子句
 183 
 184 # 0: name
 185 compiler.err.call.must.be.first.stmt.in.ctor=对{0}的调用必须是构造器中的第一个语句
 186 
 187 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
 188 compiler.err.cant.apply.symbol=无法将{4} {5}中的{0} {1}应用到给定类型;\n需要: {2}\n找到: {3}\n原因: {6}
 189 
 190 # 0: symbol kind, 1: name, 2: list of type
 191 compiler.err.cant.apply.symbols=对于{1}({2}), 找不到合适的{0}
 192 
 193 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
 194 compiler.misc.cant.apply.symbol=无法将 {4} {5}中的 {0} {1}应用到给定类型\n需要: {2}\n找到: {3}\n原因: {6}
 195 
 196 # 0: symbol kind, 1: name, 2: list of type
 197 compiler.misc.cant.apply.symbols=对于{1}({2}), 找不到合适的{0}
 198 
 199 # 0: kind name, 1: symbol
 200 compiler.misc.no.abstracts=在 {0} {1} 中找不到抽象方法
 201 
 202 # 0: kind name, 1: symbol
 203 compiler.misc.incompatible.abstracts=在 {0} {1} 中找到多个非覆盖抽象方法
 204 
 205 compiler.err.bad.functional.intf.anno=意外的 @FunctionalInterface 注释
 206 
 207 # 0: message segment
 208 compiler.err.bad.functional.intf.anno.1=意外的 @FunctionalInterface 注释\n{0}
 209 
 210 # 0: message segment
 211 compiler.err.anonymous.diamond.method.does.not.override.superclass=方法不会覆盖或实现超类型中的方法\n{0}
 212 
 213 # 0: symbol
 214 compiler.misc.not.a.functional.intf={0} 不是函数接口
 215 
 216 # 0: symbol, 1: message segment
 217 compiler.misc.not.a.functional.intf.1={0} 不是函数接口\n{1}
 218 
 219 # 0: type, 1: kind name, 2: symbol
 220 compiler.misc.invalid.generic.lambda.target=lambda 表达式的函数描述符无效\n{1} {2} 中的方法 {0} 为泛型方法
 221 
 222 # 0: kind name, 1: symbol
 223 compiler.misc.incompatible.descs.in.functional.intf=在 {0} {1} 中找到不兼容的函数描述符
 224 
 225 # 0: name, 1: list of type, 2: type, 3: list of type
 226 compiler.misc.descriptor=描述符: {2} {0}({1})
 227 
 228 # 0: name, 1: list of type, 2: type, 3: list of type
 229 compiler.misc.descriptor.throws=描述符: {2} {0}({1}) 抛出{3}
 230 
 231 # 0: type
 232 compiler.misc.no.suitable.functional.intf.inst=无法推断{0}的函数接口描述符
 233 
 234 # 0: message segment
 235 compiler.misc.bad.intersection.target.for.functional.expr=lambda 或方法引用的交叉类型目标错误\n{0}
 236 
 237 # 0: symbol or type
 238 compiler.misc.not.an.intf.component=组件类型{0}不是接口
 239 
 240 # 0: kind name, 1: message segment
 241 compiler.err.invalid.mref={0}引用无效\n{1}
 242 
 243 # 0: kind name, 1: message segment
 244 compiler.misc.invalid.mref={0}引用无效\n{1}
 245 
 246 compiler.misc.static.mref.with.targs=有关静态方法引用的参数化限定符
 247 
 248 # 0: symbol
 249 compiler.err.cant.assign.val.to.final.var=无法为最终变量{0}分配值
 250 
 251 compiler.err.cant.assign.val.to.this=无法分配给 ''this''
 252 
 253 # 0: symbol, 1: message segment
 254 compiler.err.cant.ref.non.effectively.final.var=从{1}引用的本地变量必须是最终变量或实际上的最终变量
 255 
 256 compiler.err.try.with.resources.expr.needs.var=try-with-resources 资源必须是变量声明, 或者是指示对最终变量或实际上的最终变量的引用的表达式
 257 
 258 # 0: symbol
 259 compiler.err.try.with.resources.expr.effectively.final.var=用作 try-with-resources 资源的变量 {0} 既不是最终变量, 也不是实际上的最终变量
 260 
 261 
 262 compiler.misc.lambda=lambda 表达式
 263 
 264 compiler.misc.inner.cls=内部类
 265 
 266 # 0: type
 267 compiler.err.cant.deref=无法取消引用{0}
 268 
 269 compiler.err.cant.extend.intf.annotation=对于 @interfaces, 不允许 ''extends''
 270 
 271 compiler.err.annotation.decl.not.allowed.here=此处不允许注释类型声明
 272 
 273 # 0: symbol
 274 compiler.err.cant.inherit.from.final=无法从最终{0}进行继承
 275 
 276 # 0: symbol or string
 277 compiler.err.cant.ref.before.ctor.called=无法在调用超类型构造器之前引用{0}
 278 
 279 compiler.err.cant.select.static.class.from.param.type=无法从参数化的类型中选择静态类
 280 
 281 # 0: symbol, 1: string, 2: string
 282 compiler.err.cant.inherit.diff.arg=无法使用以下不同的参数继承{0}: <{1}> 和 <{2}>
 283 
 284 compiler.err.catch.without.try=有 ''catch'', 但是没有 ''try''
 285 
 286 # 0: kind name, 1: symbol
 287 compiler.err.clash.with.pkg.of.same.name={0} {1}与带有相同名称的程序包冲突
 288 
 289 compiler.err.class.not.allowed=此处不允许使用类, 接口或枚举声明
 290 
 291 compiler.err.const.expr.req=需要常量表达式
 292 
 293 compiler.err.cont.outside.loop=continue 在 loop 外部
 294 
 295 # 0: symbol or type
 296 compiler.err.cyclic.inheritance=涉及{0}的循环继承
 297 
 298 # 0: symbol
 299 compiler.err.cyclic.annotation.element=元素 {0} 的类型为循环
 300 
 301 # 0: symbol
 302 compiler.err.call.to.super.not.allowed.in.enum.ctor=在枚举构造器中不允许调用超类
 303 
 304 # 0: type
 305 compiler.err.no.superclass={0}不具有超类。
 306 
 307 # 0: symbol, 1: type, 2: symbol, 3: type, 4: type
 308 compiler.err.concrete.inheritance.conflict={1}中的方法{0}和{3}中的方法{2}是使用相同的签名继承的
 309 
 310 compiler.err.default.allowed.in.intf.annotation.member=注释类型声明中仅允许默认值
 311 
 312 # 0: symbol
 313 compiler.err.doesnt.exist=程序包{0}不存在
 314 
 315 # 0: type
 316 compiler.err.duplicate.annotation.invalid.repeated=注释{0}不是有效的可重复注释
 317 
 318 # 0: name, 1: type
 319 compiler.err.duplicate.annotation.member.value=注释@{1}中的元素 ''{0}'' 重复。
 320 
 321 # 0: type
 322 compiler.err.duplicate.annotation.missing.container={0} 不是可重复的注释类型
 323 
 324 # 0: symbol
 325 compiler.err.invalid.repeatable.annotation=注释重复: 使用无效的 @Repeatable 注释对{0}进行了注释
 326 
 327 # 0: symbol or type
 328 compiler.err.invalid.repeatable.annotation.no.value={0}不是有效的 @Repeatable, 未声明任何值元素方法
 329 
 330 # 0: type, 1: number
 331 compiler.err.invalid.repeatable.annotation.multiple.values={0}不是有效的 @Repeatable, 已声明 {1} 个名为 ''value'' 的元素方法
 332 
 333 # 0: type
 334 compiler.err.invalid.repeatable.annotation.invalid.value={0}不是有效的 @Repeatable: 值元素无效
 335 
 336 # 0: symbol or type, 1: type, 2: type
 337 compiler.err.invalid.repeatable.annotation.value.return=包含注释类型 ({0}) 必须声明类型{2}的名为 ''value'' 的元素
 338 
 339 # 0: symbol or type, 1: symbol
 340 compiler.err.invalid.repeatable.annotation.elem.nondefault=对于元素 {1}, 包含注释类型 ({0}) 没有默认值
 341 
 342 # 0: symbol, 1: string, 2: symbol, 3: string
 343 compiler.err.invalid.repeatable.annotation.retention=包含注释类型 ({0}) 的保留期短于可重复注释类型 ({2}) 的保留期
 344 
 345 # 0: symbol, 1: symbol
 346 compiler.err.invalid.repeatable.annotation.not.documented=可重复注释类型 ({1}) 是 @Documented, 而包含注释类型 ({0}) 则不是
 347 
 348 # 0: symbol, 1: symbol
 349 compiler.err.invalid.repeatable.annotation.not.inherited=可重复注释类型 ({1}) 是 @Inherited, 而包含注释类型 ({0}) 则不是
 350 
 351 # 0: symbol, 1: symbol
 352 compiler.err.invalid.repeatable.annotation.incompatible.target=包含注释类型 ({0}) 适用的目标多于可重复注释类型 ({1})
 353 
 354 # 0: symbol
 355 compiler.err.invalid.repeatable.annotation.repeated.and.container.present=容器 {0} 不得与其包含的元素同时存在
 356 
 357 # 0: type, 1: symbol
 358 compiler.err.invalid.repeatable.annotation.not.applicable=容器{0}不适用于元素 {1}
 359 
 360 # 0: type
 361 compiler.err.invalid.repeatable.annotation.not.applicable.in.context=容器{0}在此类型上下文中不适用
 362 
 363 # 0: name
 364 compiler.err.duplicate.class=类重复: {0}
 365 
 366 # 0: name, 1: name
 367 compiler.err.same.binary.name=类:{0} 和 {1} 具有相同的二进制名称
 368 
 369 compiler.err.duplicate.case.label=case 标签重复
 370 
 371 compiler.err.duplicate.default.label=default 标签重复
 372 
 373 compiler.err.else.without.if=有 ''if'', 但是没有 ''else''
 374 
 375 compiler.err.empty.char.lit=空字符文字
 376 
 377 # 0: symbol
 378 compiler.err.encl.class.required=需要包含{0}的封闭实例
 379 
 380 compiler.err.enum.annotation.must.be.enum.constant=枚举注释值必须是枚举常量
 381 
 382 compiler.err.enum.cant.be.instantiated=无法实例化枚举类型
 383 
 384 compiler.err.enum.label.must.be.unqualified.enum=枚举 switch case 标签必须为枚举常量的非限定名称
 385 
 386 compiler.err.enum.no.subclassing=类无法直接扩展 java.lang.Enum
 387 
 388 compiler.err.enum.types.not.extensible=枚举类型不可继承
 389 
 390 compiler.err.enum.no.finalize=枚举不能有 finalize 方法
 391 
 392 # 0: file name, 1: string
 393 compiler.err.error.reading.file=读取{0}时出错; {1}
 394 
 395 # 0: type
 396 compiler.err.except.already.caught=已捕获到异常错误{0}
 397 
 398 # 0: type
 399 compiler.err.except.never.thrown.in.try=在相应的 try 语句主体中不能抛出异常错误{0}
 400 
 401 # 0: symbol
 402 compiler.err.final.parameter.may.not.be.assigned=不能分配最终参数{0}
 403 
 404 # 0: symbol
 405 compiler.err.try.resource.may.not.be.assigned=可能未分配可自动关闭的资源{0}
 406 
 407 # 0: symbol
 408 compiler.err.multicatch.parameter.may.not.be.assigned=可能未分配 multi-catch 参数{0}
 409 
 410 # 0: type, 1: type
 411 compiler.err.multicatch.types.must.be.disjoint=multi-catch 语句中的替代无法通过子类化关联\n替代{0}是替代{1}的子类
 412 
 413 compiler.err.finally.without.try=有 ''finally'', 但是没有 ''try''
 414 
 415 # 0: type, 1: message segment
 416 compiler.err.foreach.not.applicable.to.type=for-each 不适用于表达式类型\n要求: {1}\n找到:    {0}
 417 
 418 compiler.err.fp.number.too.large=浮点数过大
 419 
 420 compiler.err.fp.number.too.small=浮点数过小
 421 
 422 compiler.err.generic.array.creation=创建泛型数组
 423 
 424 compiler.err.generic.throwable=泛型类不能扩展 java.lang.Throwable
 425 
 426 # 0: symbol
 427 compiler.err.icls.cant.have.static.decl=内部类{0}中的静态声明非法\n修饰符 ''static'' 仅允许在常量变量声明中使用
 428 
 429 # 0: string
 430 compiler.err.illegal.char=非法字符: ''{0}''
 431 
 432 # 0: string, 1: string
 433 compiler.err.illegal.char.for.encoding=编码 {1} 的不可映射字符 (0x{0})
 434 
 435 # 0: set of flag, 1: set of flag
 436 compiler.err.illegal.combination.of.modifiers=非法的修饰符组合: {0}和{1}
 437 
 438 compiler.err.illegal.enum.static.ref=初始化程序中对静态字段的引用不合法
 439 
 440 compiler.err.illegal.esc.char=非法转义符
 441 
 442 compiler.err.illegal.forward.ref=非法前向引用
 443 
 444 # 0: symbol, 1: object
 445 compiler.err.not.in.profile={0}在配置文件 ''{1}'' 中不可用
 446 
 447 # 0: symbol
 448 compiler.warn.forward.ref=先引用变量 ''{0}'', 然后再对其初始化
 449 
 450 compiler.err.illegal.self.ref=初始化程序中存在自引用
 451 
 452 # 0: symbol
 453 compiler.warn.self.ref=变量 ''{0}'' 的初始化程序中存在自引用
 454 
 455 compiler.err.illegal.generic.type.for.instof=instanceof 的泛型类型不合法
 456 
 457 # 0: type
 458 compiler.err.illegal.initializer.for.type={0}的初始化程序不合法
 459 
 460 compiler.err.illegal.line.end.in.char.lit=字符文字的行结尾不合法
 461 
 462 compiler.err.illegal.nonascii.digit=非法的非 ASCII 数字
 463 
 464 compiler.err.illegal.underscore=非法下划线
 465 
 466 compiler.err.illegal.dot=非法 ''.''
 467 
 468 # 0: symbol
 469 compiler.err.illegal.qual.not.icls=非法限定符; {0}不是内部类
 470 
 471 compiler.err.illegal.start.of.expr=非法的表达式开始
 472 
 473 compiler.err.illegal.start.of.stmt=非法的语句开始
 474 
 475 compiler.err.illegal.start.of.type=非法的类型开始
 476 
 477 compiler.err.illegal.parenthesized.expression=非法的含括号表达式
 478 
 479 compiler.err.illegal.unicode.esc=非法的 Unicode 转义
 480 
 481 # 0: symbol
 482 compiler.err.import.requires.canonical=导入需要{0}的规范名称
 483 
 484 compiler.err.improperly.formed.type.param.missing=类型的格式不正确, 缺少某些参数
 485 
 486 compiler.err.improperly.formed.type.inner.raw.param=类型的格式不正确, 给出了原始类型的类型参数
 487 
 488 # 0: type, 1: type
 489 compiler.err.incomparable.types=不可比较的类型: {0}和{1}
 490 
 491 # 0: string
 492 compiler.err.int.number.too.large=整数太大
 493 
 494 compiler.err.intf.annotation.members.cant.have.params=注释类型声明中的元素无法声明形参
 495 
 496 # 0: symbol
 497 compiler.err.intf.annotation.cant.have.type.params=注释类型 {0} 不能为泛型
 498 
 499 compiler.err.intf.annotation.members.cant.have.type.params=注释类型声明中的元素不能为泛型方法
 500 
 501 # 0: symbol, 1: type
 502 compiler.err.intf.annotation.member.clash=注释类型{1}声明与方法 {0} 同名的元素
 503 
 504 compiler.err.intf.expected.here=此处需要接口
 505 
 506 compiler.err.intf.meth.cant.have.body=接口抽象方法不能带有主体
 507 
 508 compiler.err.invalid.annotation.member.type=注释类型元素的类型无效
 509 
 510 compiler.err.invalid.binary.number=二进制数字中必须包含至少一个二进制数
 511 
 512 compiler.err.invalid.hex.number=十六进制数字必须包含至少一位十六进制数
 513 
 514 compiler.err.invalid.meth.decl.ret.type.req=方法声明无效; 需要返回类型
 515 
 516 compiler.err.varargs.and.old.array.syntax=variable-arity 参数中不允许使用传统数组记号
 517 
 518 compiler.err.varargs.and.receiver =接收方参数不允许使用 varargs 记号
 519 
 520 compiler.err.varargs.must.be.last =varargs 参数必须是最后一个参数
 521 
 522 compiler.err.array.and.receiver =接收方参数不允许使用传统数组记号
 523 
 524 compiler.err.wrong.receiver =错误的接收方参数名
 525 
 526 compiler.err.variable.not.allowed=此处不允许使用变量声明
 527 
 528 # 0: name
 529 compiler.err.label.already.in.use=标签{0}已使用
 530 
 531 # 0: symbol
 532 compiler.err.local.var.accessed.from.icls.needs.final=从内部类中访问本地变量{0}; 需要被声明为最终类型
 533 
 534 compiler.err.local.enum=枚举类型不能为本地类型
 535 
 536 compiler.err.cannot.create.array.with.type.arguments=无法创建具有类型变量的数组
 537 
 538 compiler.err.cannot.create.array.with.diamond=无法创建具有 ''<>'' 的数组
 539 
 540 compiler.err.invalid.module.directive=预期为模块指令关键字或 ''}''
 541 
 542 #
 543 # limits.  We don't give the limits in the diagnostic because we expect
 544 # them to change, yet we want to use the same diagnostic.  These are all
 545 # detected during code generation.
 546 #
 547 compiler.err.limit.code=代码过长
 548 
 549 compiler.err.limit.code.too.large.for.try.stmt=try 语句的代码过长
 550 
 551 compiler.err.limit.dimensions=数组类型维过多
 552 
 553 compiler.err.limit.locals=本地变量过多
 554 
 555 compiler.err.limit.parameters=参数过多
 556 
 557 compiler.err.limit.pool=常量过多
 558 
 559 compiler.err.limit.pool.in.class=类{0}中的常量过多
 560 
 561 compiler.err.limit.stack=代码需要过多堆栈
 562 
 563 compiler.err.limit.string=常量字符串过长
 564 
 565 # 0: string
 566 compiler.err.limit.string.overflow=对于常量池来说, 字符串 "{0}..." 的 UTF8 表示过长
 567 
 568 compiler.err.malformed.fp.lit=浮点文字的格式错误
 569 
 570 compiler.err.method.does.not.override.superclass=方法不会覆盖或实现超类型的方法
 571 
 572 compiler.err.static.methods.cannot.be.annotated.with.override=不能使用 @Override 注释静态方法
 573 
 574 compiler.err.missing.meth.body.or.decl.abstract=缺少方法主体, 或声明抽象
 575 
 576 compiler.err.missing.ret.stmt=缺少返回语句
 577 
 578 # 0: type
 579 compiler.misc.missing.ret.val=缺少返回值
 580 
 581 compiler.misc.unexpected.ret.val=意外的返回值
 582 
 583 # 0: set of flag
 584 compiler.err.mod.not.allowed.here=此处不允许使用修饰符{0}
 585 
 586 # 0: name
 587 compiler.err.modifier.not.allowed.here=此处不允许使用修饰符{0}
 588 
 589 compiler.err.intf.not.allowed.here=此处不允许使用接口
 590 
 591 compiler.err.enums.must.be.static=只有在静态上下文中才允许使用枚举声明
 592 
 593 # 0: symbol, 1: symbol
 594 compiler.err.name.clash.same.erasure=名称冲突: {0}和{1}具有相同疑符
 595 
 596 # 0: name, 1: list of type, 2: symbol, 3: name, 4: list of type, 5: symbol
 597 compiler.err.name.clash.same.erasure.no.override=名称冲突: {2} 中的 {0}({1}) 和 {5} 中的 {3}({4}) 具有相同疑符, 但两者均不覆盖对方
 598 
 599 # 0: string, 1: name, 2: name, 3: list of type, 4: symbol, 5: name, 6: list of type, 7: symbol
 600 compiler.err.name.clash.same.erasure.no.override.1=名称冲突: {0} {1} 的两种方法具有相同的疑符, 但两者均不覆盖对方\n第一种方法: {4} 中的 {2}({3})\n第二种方法: {7} 中的 {5}({6})
 601 
 602 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
 603 compiler.err.name.clash.same.erasure.no.hide=名称冲突: {1} 中的 {0} 和 {3} 中的 {2} 具有相同疑符, 但两者均不隐藏对方
 604 
 605 compiler.err.name.reserved.for.internal.use={0}为内部使用保留
 606 
 607 compiler.err.native.meth.cant.have.body=本机方法不能带有主体
 608 
 609 
 610 # 0: message segment
 611 compiler.misc.incompatible.type.in.conditional=条件表达式中的类型错误\n{0}
 612 
 613 compiler.misc.conditional.target.cant.be.void=条件表达式的目标类型不能为空
 614 
 615 compiler.misc.switch.expression.target.cant.be.void=switch 表达式的目标类型不能为空
 616 
 617 # 0: message segment
 618 compiler.misc.incompatible.type.in.switch.expression=switch 表达式中的类型错误\n{0}
 619 
 620 # 0: message segment
 621 compiler.misc.incompatible.ret.type.in.lambda=lambda 表达式中的返回类型错误\n{0}
 622 
 623 compiler.misc.stat.expr.expected=lambda 主体与 void 函数接口不兼容\n(请考虑使用块 lambda 主体, 或者改为使用语句表达式)
 624 
 625 # 0: message segment
 626 compiler.misc.incompatible.ret.type.in.mref=方法引用中的返回类型错误\n{0}
 627 
 628 compiler.err.lambda.body.neither.value.nor.void.compatible=lambda 主体不是值, 也不与 void 兼容
 629 
 630 # 0: list of type
 631 compiler.err.incompatible.thrown.types.in.mref=函数表达式中抛出的类型 {0} 不兼容
 632 
 633 compiler.misc.incompatible.arg.types.in.lambda=lambda 表达式中的参数类型不兼容
 634 
 635 compiler.misc.incompatible.arg.types.in.mref=方法引用中的参数类型不兼容
 636 
 637 compiler.err.new.not.allowed.in.annotation=注释中不允许使用 ''new''
 638 
 639 # 0: name, 1: type
 640 compiler.err.no.annotation.member={1}中没有注释成员{0}
 641 
 642 # 0: symbol
 643 compiler.err.no.encl.instance.of.type.in.scope=作用域中没有类型为{0}的封闭实例
 644 
 645 compiler.err.no.intf.expected.here=此处不需要接口
 646 
 647 compiler.err.no.match.entry={0}在{1}的条目中没有匹配项; 需要{2}
 648 
 649 # 0: type
 650 compiler.err.not.annotation.type={0}不是注释类型
 651 
 652 # 0: symbol, 1: symbol, 2: message segment
 653 compiler.err.not.def.access.package.cant.access={0} 不可见\n({2})
 654 
 655 # 0: symbol, 1: symbol, 2: message segment
 656 compiler.misc.not.def.access.package.cant.access={0} 不可见\n({2})
 657 
 658 # 0: symbol, 1: message segment
 659 compiler.err.package.not.visible=程序包 {0} 不可见\n({1})
 660 
 661 # 0: symbol, 1: message segment
 662 compiler.misc.package.not.visible=程序包 {0} 不可见\n({1})
 663 
 664 # {0} - current module
 665 # {1} - package in which the invisible class is declared
 666 # {2} - module in which {1} is declared
 667 # 0: symbol, 1: symbol, 2: symbol
 668 compiler.misc.not.def.access.does.not.read=程序包 {1} 已在模块 {2} 中声明, 但模块 {0} 未读取它
 669 
 670 # {0} - package in which the invisible class is declared
 671 # {1} - module in which {0} is declared
 672 # 0: symbol, 1: symbol
 673 compiler.misc.not.def.access.does.not.read.from.unnamed=程序包 {0} 已在模块 {1} 中声明, 但该模块不在模块图中
 674 
 675 # {0} - package in which the invisible class is declared
 676 # {1} - current module
 677 # 0: symbol, 1: symbol
 678 compiler.misc.not.def.access.does.not.read.unnamed=程序包 {0} 已在未命名模块中声明, 但模块 {0} 未读取它
 679 
 680 # {0} - package in which the invisible class is declared
 681 # {1} - module in which {0} is declared
 682 # 0: symbol, 1: symbol
 683 compiler.misc.not.def.access.not.exported=程序包 {0} 已在模块 {1} 中声明, 但该模块未导出它
 684 
 685 # {0} - package in which the invisible class is declared
 686 # {1} - module in which {0} is declared
 687 # 0: symbol, 1: symbol
 688 compiler.misc.not.def.access.not.exported.from.unnamed=程序包 {0} 已在模块 {1} 中声明, 但该模块未导出它
 689 
 690 # {0} - package in which the invisible class is declared
 691 # {1} - module in which {0} is declared
 692 # {2} - current module
 693 # 0: symbol, 1: symbol, 2: symbol
 694 compiler.misc.not.def.access.not.exported.to.module=程序包 {0} 已在模块 {1} 中声明, 但该模块未将它导出到模块 {2}
 695 
 696 # {0} - package in which the invisible class is declared
 697 # {1} - module in which {0} is declared
 698 # 0: symbol, 1: symbol
 699 compiler.misc.not.def.access.not.exported.to.module.from.unnamed=程序包 {0} 已在模块 {1} 中声明, 但该模块未将它导出到未命名模块
 700 
 701 # 0: symbol, 1: symbol
 702 compiler.err.not.def.access.class.intf.cant.access={1}.{0} 是在不可访问的类或接口中定义的
 703 
 704 # 0: symbol, 1: symbol
 705 compiler.misc.not.def.access.class.intf.cant.access={1}.{0} 是在不可访问的类或接口中定义的
 706 
 707 # 0: symbol, 1: symbol, 2: symbol, 3: message segment
 708 compiler.err.not.def.access.class.intf.cant.access.reason=程序包 {2} 中的 {1}.{0} 不可访问\n({3})
 709 
 710 # 0: symbol, 1: symbol, 2: symbol, 3: message segment
 711 compiler.misc.not.def.access.class.intf.cant.access.reason=程序包 {2} 中的 {1}.{0} 不可访问\n({3})
 712 
 713 # 0: symbol, 1: list of type, 2: type
 714 compiler.misc.cant.access.inner.cls.constr=无法访问构造器 {0}({1})\n作用域中没有类型为{2}的封闭实例
 715 
 716 # 0: symbol, 1: symbol
 717 compiler.err.not.def.public.cant.access={0}在{1}中不是公共的; 无法从外部程序包中对其进行访问
 718 
 719 # 0: symbol, 1: symbol
 720 compiler.err.not.def.public={0} 在 {1} 中不是公共的
 721 
 722 # 0: symbol, 1: symbol
 723 compiler.misc.not.def.public.cant.access={0}在{1}中不是公共的; 无法从外部程序包中对其进行访问
 724 
 725 # 0: name
 726 compiler.err.not.loop.label=不是 loop 标签: {0}
 727 
 728 compiler.err.not.stmt=不是语句
 729 
 730 # 0: symbol
 731 compiler.err.not.encl.class=不是封闭类: {0}
 732 
 733 # 0: name, 1: type
 734 compiler.err.operator.cant.be.applied=一元运算符 ''{0}'' 的操作数类型{1}错误
 735 
 736 # 0: name, 1: type, 2: type
 737 compiler.err.operator.cant.be.applied.1=二元运算符 ''{0}'' 的操作数类型错误\n第一个类型:  {1}\n第二个类型: {2}
 738 
 739 compiler.err.pkg.annotations.sb.in.package-info.java=程序包注释应在文件 package-info.java 中
 740 
 741 compiler.err.no.pkg.in.module-info.java=文件 module-info.java 中不允许使用程序包声明
 742 
 743 # 0: symbol
 744 compiler.err.pkg.clashes.with.class.of.same.name=程序包{0}与带有相同名称的类冲突
 745 
 746 compiler.err.warnings.and.werror=发现警告, 但指定了 -Werror
 747 
 748 # Errors related to annotation processing
 749 
 750 # 0: symbol, 1: message segment, 2: string (stack-trace)
 751 compiler.err.proc.cant.access=无法访问{0}\n{1}\n有关详细信息, 请参阅以下堆栈跟踪。\n{2}
 752 
 753 # 0: symbol, 1: message segment
 754 compiler.err.proc.cant.access.1=无法访问{0}\n{1}
 755 
 756 # 0: string
 757 compiler.err.proc.cant.find.class=找不到 ''{0}'' 的类文件。
 758 
 759 # Print a client-generated error message; assumed to be localized, no translation required
 760 # 0: string
 761 compiler.err.proc.messager={0}
 762 
 763 # 0: string
 764 compiler.misc.exception.message={0}
 765 
 766 compiler.misc.user.selected.completion.failure=按类名列出的用户选择输入提示失败
 767 
 768 # 0: collection of string
 769 compiler.err.proc.no.explicit.annotation.processing.requested=仅当显式请求注释处理时才接受类名称 ''{0}''
 770 
 771 compiler.err.proc.no.service=ServiceLoader 不可用, 但它是注释处理所必需的。
 772 
 773 # 0: string, 1: string
 774 compiler.err.proc.processor.bad.option.name=处理程序 ''{1}'' 提供的选项名称 ''{0}'' 错误
 775 
 776 # 0: string
 777 compiler.err.proc.processor.cant.instantiate=无法实例化处理程序 ''{0}'' 的实例
 778 
 779 # 0: string
 780 compiler.err.proc.processor.not.found=找不到注释处理程序 ''{0}''
 781 
 782 # 0: string
 783 compiler.err.proc.processor.wrong.type=注释处理程序 ''{0}'' 未实现 javax.annotation.processing.Processor
 784 
 785 compiler.err.proc.service.problem=创建服务加载器以加载处理程序时出错。
 786 
 787 # 0: string
 788 compiler.err.proc.bad.config.file=服务配置文件不正确, 或构造处理程序对象{0}时抛出异常错误
 789 
 790 compiler.err.proc.cant.create.loader=无法为注释处理程序{0}创建类加载器
 791 
 792 # 0: symbol
 793 compiler.err.qualified.new.of.static.class=限定的新静态类
 794 
 795 compiler.err.recursive.ctor.invocation=递归构造器调用
 796 
 797 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
 798 compiler.err.ref.ambiguous=对{0}的引用不明确\n{3} 中的{1} {2} 和 {6} 中的{4} {5} 都匹配
 799 
 800 # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol
 801 compiler.misc.ref.ambiguous=对{0}的引用不明确\n{3} 中的{1} {2} 和 {6} 中的{4} {5} 都匹配
 802 
 803 compiler.err.repeated.annotation.target=注释目标重复
 804 
 805 compiler.err.repeated.interface=接口重复
 806 
 807 compiler.err.repeated.modifier=修饰符重复
 808 
 809 # 0: symbol, 1: set of modifier, 2: symbol
 810 compiler.err.report.access={0} 在 {2} 中是 {1} 访问控制
 811 
 812 # 0: symbol, 1: set of modifier, 2: symbol
 813 compiler.misc.report.access={0} 在 {2} 中是 {1} 访问控制
 814 
 815 compiler.err.ret.outside.meth=返回外部方法
 816 
 817 compiler.err.signature.doesnt.match.supertype=签名与{0}不匹配; 不兼容的超类型
 818 
 819 compiler.err.signature.doesnt.match.intf=签名与{0}不匹配; 不兼容的接口
 820 
 821 # 0: symbol, 1: symbol, 2: symbol
 822 compiler.err.does.not.override.abstract={0}不是抽象的, 并且未覆盖{2}中的抽象方法{1}
 823 
 824 # 0: file object
 825 compiler.err.source.cant.overwrite.input.file=写入源时出错; 无法覆盖输入文件{0}
 826 
 827 # 0: symbol
 828 compiler.err.stack.sim.error=内部错误: {0}中的堆栈 sim 错误
 829 
 830 compiler.err.static.imp.only.classes.and.interfaces=仅从类和接口静态导入
 831 
 832 compiler.err.string.const.req=需要常量字符串表达式
 833 
 834 # 0: symbol, 1: fragment
 835 compiler.err.cannot.generate.class=生成类 {0} 时出错\n({1})
 836 
 837 # 0: symbol, 1: symbol
 838 compiler.misc.synthetic.name.conflict=符号{0}与{1}中的 compiler-synthesized 符号冲突
 839 
 840 # 0: symbol, 1: type
 841 compiler.misc.illegal.signature=类型 {1} 的签名属性非法
 842 
 843 compiler.err.throws.not.allowed.in.intf.annotation=@interface 成员中不允许使用 throws 子句
 844 
 845 compiler.err.try.without.catch.finally.or.resource.decls=''try'' 不带有 ''catch'', ''finally'' 或资源声明
 846 
 847 # 0: symbol
 848 compiler.err.type.doesnt.take.params=类型{0}不带有参数
 849 
 850 compiler.err.type.var.cant.be.deref=无法从类型变量中进行选择
 851 
 852 compiler.err.type.var.may.not.be.followed.by.other.bounds=类型变量后面不能带有其他限制范围
 853 
 854 compiler.err.type.var.more.than.once=类型变量{0}在{1}的结果类型中多次出现; 必须对其进行实例化
 855 
 856 compiler.err.type.var.more.than.once.in.result=类型变量{0}在{1}的类型中多次出现; 必须对其进行实例化
 857 
 858 # 0: type, 1: type, 2: fragment
 859 compiler.err.types.incompatible=类型 {0} 和 {1} 不兼容;\n{2}
 860 
 861 # 0: name, 1: list of type
 862 compiler.misc.incompatible.diff.ret=两者都定义了 {0}({1}),但却带有不相关的返回类型
 863 
 864 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
 865 compiler.misc.incompatible.unrelated.defaults={0} {1}从类型 {4} 和 {5} 中继承了{2}({3}) 的不相关默认值
 866 
 867 # 0: kind name, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol
 868 compiler.misc.incompatible.abstract.default={0} {1}从类型 {4} 和 {5} 中继承了{2}({3}) 的抽象和默认值
 869 
 870 # 0: name, 1: kind name, 2: symbol
 871 compiler.err.default.overrides.object.member={1} {2} 中的默认方法{0}覆盖了 java.lang.Object 的成员
 872 
 873 # 0: type
 874 compiler.err.illegal.static.intf.meth.call=静态接口方法调用非法\n应将接收方表达式替换为类型限定符 ''{0}''
 875 
 876 # 0: symbol or type, 1: message segment
 877 compiler.err.illegal.default.super.call=默认超级调用中的类型限定符{0}错误\n{1}
 878 
 879 # 0: symbol, 1: type
 880 compiler.misc.overridden.default=覆盖了{1}中的方法 {0}
 881 
 882 # 0: symbol, 1: type or symbol
 883 compiler.misc.redundant.supertype=冗余接口 {0} 已由 {1} 扩展
 884 
 885 compiler.err.unclosed.char.lit=未结束的字符文字
 886 
 887 compiler.err.unclosed.comment=未结束的注释
 888 
 889 compiler.err.unclosed.str.lit=未结束的字符串文字
 890 
 891 compiler.err.unicode.backtick=尝试将 \\u0060 用作原始字符串文字分隔符
 892 
 893 # 0: string
 894 compiler.err.unsupported.encoding=不支持的编码: {0}
 895 
 896 compiler.err.io.exception=读取源文件时出错: {0}
 897 
 898 # 0: name
 899 compiler.err.undef.label=未定义的标签: {0}
 900 
 901 compiler.err.illegal.ref.to.var.type=对受限制类型 ''var'' 的引用非法
 902 
 903 compiler.err.var.not.allowed=从发行版 10 开始,\n此处不允许使用 ''var'',''var'' 是受限制的本地变量类型,无法用于类型声明
 904 
 905 compiler.warn.var.not.allowed=从发行版 10 开始,''var'' 是受限制的本地变量类型,无法用于类型声明,也无法用作数组的元素类型
 906 
 907 # 0: name (variable), 1: message segment
 908 compiler.err.cant.infer.local.var.type=无法推断本地变量 {0} 的类型\n({1})
 909 
 910 compiler.err.var.not.allowed.here=此处不允许使用 ''var''
 911 
 912 compiler.err.var.not.allowed.array=''var'' 不允许用作数组的元素类型
 913 
 914 compiler.err.var.not.allowed.compound=''var'' 不允许在复合声明中使用
 915 
 916 # 0: fragment
 917 compiler.err.invalid.lambda.parameter.declaration=无效的 lambda 参数声明\n({0})
 918 
 919 compiler.misc.implicit.and.explicit.not.allowed=不能将隐式类型和显式类型的参数混合使用
 920 
 921 compiler.misc.var.and.explicit.not.allowed=不能将 ''var'' 和显式类型的参数混合使用
 922 
 923 compiler.misc.var.and.implicit.not.allowed=不能将 ''var'' 和隐式类型的参数混合使用
 924 
 925 compiler.misc.local.cant.infer.null=变量初始化程序为 ''null''
 926 
 927 compiler.misc.local.cant.infer.void=变量初始化程序为 ''void''
 928 
 929 compiler.misc.local.missing.init=无法在不带初始化程序的变量上使用 ''var''
 930 
 931 compiler.misc.local.lambda.missing.target=lambda 表达式需要显式目标类型
 932 
 933 compiler.misc.local.mref.missing.target=方法引用需要显式目标类型
 934 
 935 compiler.misc.local.array.missing.target=数组初始化程序需要显式目标类型
 936 
 937 compiler.misc.local.self.ref=无法在自引用变量上使用 ''var''
 938 
 939 # 0: message segment, 1: unused
 940 compiler.err.cant.apply.diamond=无法推断{0}的类型参数
 941 
 942 # 0: message segment or type, 1: message segment
 943 compiler.err.cant.apply.diamond.1=无法推断{0}的类型参数\n原因: {1}
 944 
 945 # 0: message segment or type, 1: message segment
 946 compiler.misc.cant.apply.diamond.1=无法推断{0}的类型参数\n原因: {1}
 947 
 948 compiler.err.unreachable.stmt=无法访问的语句
 949 
 950 compiler.err.not.exhaustive=switch 表达式不包含所有可能的输入值
 951 
 952 compiler.err.initializer.must.be.able.to.complete.normally=初始化程序必须能够正常完成
 953 
 954 compiler.err.initializer.not.allowed=接口中不允许有初始化程序
 955 
 956 # 0: type
 957 compiler.err.unreported.exception.need.to.catch.or.throw=未报告的异常错误{0}; 必须对其进行捕获或声明以便抛出
 958 
 959 # 0: type
 960 compiler.err.unreported.exception.default.constructor=默认构造器中未报告的异常错误{0}
 961 
 962 # 0: type, 1: name
 963 compiler.err.unreported.exception.implicit.close=未报告的异常错误{0}; 必须对其进行捕获或声明以便抛出\n对资源变量 ''{1}'' 隐式调用 close() 时抛出了异常错误
 964 
 965 compiler.err.unsupported.cross.fp.lit=该 VM 不支持十六进制浮点文字
 966 
 967 compiler.err.void.not.allowed.here=此处不允许使用 ''空'' 类型
 968 
 969 # 0: string
 970 compiler.err.wrong.number.type.args=类型变量数目错误; 需要{0}
 971 
 972 # 0: symbol
 973 compiler.err.var.might.already.be.assigned=可能已分配变量{0}
 974 
 975 # 0: symbol
 976 compiler.err.var.might.not.have.been.initialized=可能尚未初始化变量{0}
 977 
 978 # 0: symbol
 979 compiler.err.var.not.initialized.in.default.constructor=变量 {0} 未在默认构造器中初始化
 980 
 981 # 0: symbol
 982 compiler.err.var.might.be.assigned.in.loop=可能在 loop 中分配了变量{0}
 983 
 984 # 0: symbol, 1: message segment
 985 compiler.err.varargs.invalid.trustme.anno={0} 注释无效。{1}
 986 
 987 # 0: type
 988 compiler.misc.varargs.trustme.on.reifiable.varargs=Varargs 元素类型{0}可具体化。
 989 
 990 # 0: symbol
 991 compiler.misc.varargs.trustme.on.non.varargs.meth=方法 {0} 不是 varargs 方法。
 992 
 993 # 0: symbol
 994 compiler.misc.varargs.trustme.on.virtual.varargs=实例方法 {0} 既不是最终的, 也不是私有的。
 995 
 996 # 0: symbol
 997 compiler.misc.varargs.trustme.on.virtual.varargs.final.only=实例方法 {0} 不是最终的。
 998 
 999 # 0: type, 1: symbol kind, 2: symbol
1000 compiler.misc.inaccessible.varargs.type=形式 varargs 元素类型{0}无法从 {1} {2} 进行访问
1001 
1002 # In the following string, {1} will always be the detail message from
1003 # java.io.IOException.
1004 # 0: symbol, 1: string
1005 compiler.err.class.cant.write=写入{0}时出错: {1}
1006 
1007 # In the following string, {0} is the name of the class in the Java source.
1008 # It really should be used two times..
1009 # 0: kind name, 1: name
1010 compiler.err.class.public.should.be.in.file={0} {1} 是公共的, 应在名为 {1}.java 的文件中声明
1011 
1012 ## All errors which do not refer to a particular line in the source code are
1013 ## preceded by this string.
1014 compiler.err.error=错误: 
1015 
1016 # The following error messages do not refer to a line in the source code.
1017 compiler.err.cant.read.file=无法读取: {0}
1018 
1019 # 0: string
1020 compiler.err.plugin.not.found=找不到插件: {0}
1021 
1022 # 0: path
1023 compiler.warn.locn.unknown.file.on.module.path=模块路径中的未知文件: {0}
1024 
1025 
1026 # 0: path
1027 compiler.err.locn.bad.module-info=读取 {0} 中的 module-info.class 时出现问题
1028 
1029 # 0: path
1030 compiler.err.locn.cant.read.directory=无法读取目录 {0}
1031 
1032 # 0: path
1033 compiler.err.locn.cant.read.file=无法读取文件 {0}
1034 
1035 # 0: path
1036 compiler.err.locn.cant.get.module.name.for.jar=无法确定 {0} 的模块名称
1037 
1038 # 0: path
1039 compiler.err.multi-module.outdir.cannot.be.exploded.module=在多模块模式下, 输出目录不能是展开的模块: {0}
1040 
1041 # 0: path
1042 compiler.warn.outdir.is.in.exploded.module=输出目录位于展开的模块中: {0}
1043 
1044 # 0: file object
1045 compiler.err.locn.module-info.not.allowed.on.patch.path=在补丁程序路径中不允许 module-info.class: {0}
1046 
1047 # 0: string
1048 compiler.err.locn.invalid.arg.for.xpatch=--patch-module 选项的参数无效: {0}
1049 
1050 compiler.err.file.sb.on.source.or.patch.path.for.module=文件应在源路径或模块的补丁程序路径中
1051 
1052 #####
1053 
1054 # Fatal Errors
1055 
1056 compiler.misc.fatal.err.no.java.lang=致命错误: 在类路径或引导类路径中找不到程序包 java.lang
1057 
1058 # 0: name
1059 compiler.misc.fatal.err.cant.locate.meth=致命错误: 找不到方法{0}
1060 
1061 # 0: name
1062 compiler.misc.fatal.err.cant.locate.field=致命错误: 找不到字段{0}
1063 
1064 # 0: type
1065 compiler.misc.fatal.err.cant.locate.ctor=致命错误: 找不到{0}的构造器
1066 
1067 compiler.misc.fatal.err.cant.close=致命错误: 无法关闭编译器资源
1068 
1069 #####
1070 
1071 ##
1072 ## miscellaneous strings
1073 ##
1074 
1075 compiler.misc.diamond.anonymous.methods.implicitly.override=(由于 <>, 匿名类中声明的每个非私有方法必须覆盖或实现超类型中的方法)
1076 
1077 compiler.misc.source.unavailable=(源不可用)
1078 
1079 compiler.misc.base.membership=您的所有基类都属于我们
1080 
1081 # 0: string, 1: string, 2: boolean
1082 compiler.misc.x.print.processor.info=处理程序{0}与{1}匹配并返回{2}。
1083 
1084 # 0: number, 1: string, 2: set of symbol, 3: boolean
1085 compiler.misc.x.print.rounds=循环 {0}:\n\t输入文件: {1}\n\t注释: {2}\n\t最后一个循环: {3}
1086 
1087 # 0: file name
1088 compiler.warn.file.from.future=文件 {0} 的修改日期是未来的日期
1089 
1090 #####
1091 
1092 ## The following string will appear before all messages keyed as:
1093 ## "compiler.note".
1094 
1095 compiler.note.compressed.diags=某些消息已经过简化; 请使用 -Xdiags:verbose 重新编译以获得完整输出
1096 
1097 # 0: boolean, 1: symbol
1098 compiler.note.lambda.stat=转换 lambda 表达式\n替代 metafactory = {0}\n合成方法 = {1}
1099 
1100 # 0: boolean, 1: unused
1101 compiler.note.mref.stat=转换方法引用\n替代 metafactory = {0}\n
1102 # 0: boolean, 1: symbol
1103 compiler.note.mref.stat.1=转换方法引用\n替代 metafactory = {0}\nbridge 方法 = {1}
1104 
1105 compiler.note.note=注: 
1106 
1107 # 0: file name
1108 compiler.note.deprecated.filename={0}使用或覆盖了已过时的 API。
1109 
1110 compiler.note.deprecated.plural=某些输入文件使用或覆盖了已过时的 API。
1111 
1112 # The following string may appear after one of the above deprecation
1113 # messages.
1114 compiler.note.deprecated.recompile=有关详细信息, 请使用 -Xlint:deprecation 重新编译。
1115 
1116 # 0: file name
1117 compiler.note.deprecated.filename.additional={0}还使用或覆盖了已过时的 API。
1118 
1119 compiler.note.deprecated.plural.additional=某些输入文件还使用或覆盖了已过时的 API。
1120 
1121 # 0: file name
1122 compiler.note.removal.filename={0} 使用或覆盖了标记为待删除的已过时 API。
1123 
1124 compiler.note.removal.plural=某些输入文件使用或覆盖了标记为待删除的已过时 API。
1125 
1126 # The following string may appear after one of the above removal messages.
1127 compiler.note.removal.recompile=有关详细信息, 请使用 -Xlint:removal 重新编译。
1128 
1129 # 0: file name
1130 compiler.note.removal.filename.additional={0} 额外使用或覆盖了标记为待删除的已过时 API。
1131 
1132 compiler.note.removal.plural.additional=某些输入文件额外使用或覆盖了标记为待删除的已过时 API。
1133 
1134 # 0: file name
1135 compiler.note.unchecked.filename={0}使用了未经检查或不安全的操作。
1136 
1137 compiler.note.unchecked.plural=某些输入文件使用了未经检查或不安全的操作。
1138 
1139 # The following string may appear after one of the above unchecked messages.
1140 compiler.note.unchecked.recompile=有关详细信息, 请使用 -Xlint:unchecked 重新编译。
1141 
1142 # 0: file name
1143 compiler.note.unchecked.filename.additional={0}还有未经检查或不安全的操作。
1144 
1145 compiler.note.unchecked.plural.additional=某些输入文件还使用了未经检查或不安全的操作。
1146 
1147 # 0: file name
1148 compiler.note.preview.filename={0} 使用预览语言功能。
1149 
1150 compiler.note.preview.plural=某些输入文件使用预览语言功能。
1151 
1152 # The following string may appear after one of the above deprecation
1153 # messages.
1154 compiler.note.preview.recompile=有关详细信息,请使用 -Xlint:preview 重新编译。
1155 
1156 # 0: file name
1157 compiler.note.preview.filename.additional={0} 还使用预览语言功能。
1158 
1159 compiler.note.preview.plural.additional=某些输入文件还使用预览语言功能。
1160 
1161 # Notes related to annotation processing
1162 
1163 # Print a client-generated note; assumed to be localized, no translation required
1164 # 0: string
1165 compiler.note.proc.messager={0}
1166 
1167 # 0: string, 1: string, 2: string
1168 compiler.note.multiple.elements=通过 javax.lang.model.util.Elements.{0} 在模块 ''{2}'' 中找到了多个名为 ''{1}'' 的元素。
1169 
1170 #####
1171 
1172 # 0: number
1173 compiler.misc.count.error={0} 个错误
1174 
1175 # 0: number
1176 compiler.misc.count.error.plural={0} 个错误
1177 
1178 # 0: number
1179 compiler.misc.count.warn={0} 个警告
1180 
1181 # 0: number
1182 compiler.misc.count.warn.plural={0} 个警告
1183 
1184 compiler.misc.version.not.available=(版本信息不可用)
1185 
1186 ## extra output when using -verbose (JavaCompiler)
1187 
1188 # 0: symbol
1189 compiler.misc.verbose.checking.attribution=[正在检查{0}]
1190 
1191 # 0: string
1192 compiler.misc.verbose.parsing.done=[语法分析已完成, 用时 {0} 毫秒]
1193 
1194 # 0: file name
1195 compiler.misc.verbose.parsing.started=[语法分析开始时间 {0}]
1196 
1197 # 0: string
1198 compiler.misc.verbose.total=[共 {0} 毫秒]
1199 
1200 # 0: file name
1201 compiler.misc.verbose.wrote.file=[已写入{0}]
1202 
1203 ## extra output when using -verbose (code/ClassReader)
1204 # 0: string
1205 compiler.misc.verbose.loading=[正在加载{0}]
1206 
1207 # 0: string
1208 compiler.misc.verbose.sourcepath=[源文件的搜索路径: {0}]
1209 
1210 # 0: string
1211 compiler.misc.verbose.classpath=[类文件的搜索路径: {0}]
1212 
1213 ## extra output when using -prompt (util/Log)
1214 compiler.misc.resume.abort=继续(R), 放弃(A)>
1215 
1216 #####
1217 
1218 ##
1219 ## warnings
1220 ##
1221 
1222 ## All warning messages are preceded by the following string.
1223 compiler.warn.warning=警告: 
1224 
1225 ## Warning messages may also include the following prefix to identify a
1226 ## lint option
1227 # 0: option name
1228 compiler.warn.lintOption=[{0}] 
1229 
1230 # 0: symbol
1231 compiler.warn.constant.SVUID=serialVersionUID 在类{0}中必须是常量
1232 
1233 # 0: path
1234 compiler.warn.dir.path.element.not.found=错误的路径元素 "{0}": 没有这种目录
1235 
1236 # 0: file name
1237 compiler.warn.dir.path.element.not.directory=错误的路径元素 "{0}": 不是目录
1238 
1239 compiler.warn.finally.cannot.complete=finally 子句无法正常完成
1240 
1241 # 0: name
1242 compiler.warn.poor.choice.for.module.name=模块名称组成部分 {0} 应避免以数字结尾
1243 
1244 # 0: string
1245 compiler.warn.incubating.modules=使用 incubating 模块: {0}
1246 
1247 # 0: symbol, 1: symbol
1248 compiler.warn.has.been.deprecated={1}中的{0}已过时
1249 
1250 # 0: symbol, 1: symbol
1251 compiler.warn.has.been.deprecated.for.removal={1} 中的 {0} 已过时, 且标记为待删除
1252 
1253 # 0: symbol
1254 compiler.warn.has.been.deprecated.module=模块 {0} 已过时
1255 
1256 # 0: symbol
1257 compiler.warn.has.been.deprecated.for.removal.module=模块 {0} 已过时, 且标记为待删除
1258 
1259 # 0: symbol
1260 compiler.warn.sun.proprietary={0}是内部专用 API, 可能会在未来发行版中删除
1261 
1262 compiler.warn.illegal.char.for.encoding=编码{0}的不可映射字符
1263 
1264 # 0: symbol
1265 compiler.warn.improper.SVUID=必须在类{0}中将 serialVersionUID 声明为 static final
1266 
1267 # 0: type, 1: type
1268 compiler.warn.inexact.non-varargs.call=最后一个参数使用了不准确的变量类型的 varargs 方法的非 varargs 调用; \n对于 varargs 调用, 应使用 {0}\n对于非 varargs 调用, 应使用 {1}, 这样也可以抑制此警告
1269 
1270 # 0: list of type
1271 compiler.warn.unreachable.catch=catch 子句无法访问\n已捕获到抛出的类型{0}
1272 
1273 # 0: list of type
1274 compiler.warn.unreachable.catch.1=catch 子句无法访问\n已捕获到抛出的类型{0}
1275 
1276 # 0: symbol
1277 compiler.warn.long.SVUID=serialVersionUID 在类{0}中必须是 long 类型
1278 
1279 # 0: symbol
1280 compiler.warn.missing.SVUID=可序列化类{0}没有 serialVersionUID 的定义
1281 
1282 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1283 compiler.warn.potentially.ambiguous.overload={1} 中的 {0} 可能与 {3} 中的 {2} 混淆
1284 
1285 # 0: message segment
1286 compiler.warn.override.varargs.missing={0}; 被覆盖的方法没有 ''...''
1287 
1288 # 0: message segment
1289 compiler.warn.override.varargs.extra={0}; 覆盖的方法缺少 ''...''
1290 
1291 # 0: message segment
1292 compiler.warn.override.bridge={0}; 被覆盖的方法为 bridge 方法
1293 
1294 # 0: symbol
1295 compiler.warn.pkg-info.already.seen=已找到程序包{0}的 package-info.java 文件
1296 
1297 # 0: path
1298 compiler.warn.path.element.not.found=错误的路径元素 "{0}": 没有这种文件或目录
1299 
1300 compiler.warn.possible.fall-through.into.case=可能无法实现 case
1301 
1302 # 0: type
1303 compiler.warn.redundant.cast=出现冗余的到{0}的转换
1304 
1305 # 0: number
1306 compiler.warn.position.overflow=行 {0} 处的位置编码溢出
1307 
1308 # 0: file name, 1: number, 2: number
1309 compiler.warn.big.major.version={0}: 主版本 {1} 比 {2} 新, 此编译器支持最新的主版本。\n建议升级此编译器。
1310 
1311 # 0: kind name, 1: symbol
1312 compiler.warn.static.not.qualified.by.type=static {0}应由类型名称{1}而不是表达式限定
1313 
1314 # 0: string
1315 compiler.warn.source.no.bootclasspath=未与 -source {0} 一起设置引导类路径
1316 
1317 # 0: string
1318 compiler.warn.option.obsolete.source=源值{0}已过时, 将在未来所有发行版中删除
1319 
1320 # 0: target
1321 compiler.warn.option.obsolete.target=目标值{0}已过时, 将在未来所有发行版中删除
1322 
1323 # 0: string, 1: string
1324 compiler.err.option.removed.source=不再支持源选项 {0}。请使用 {1} 或更高版本。
1325 
1326 # 0: target, 1: target
1327 compiler.err.option.removed.target=不再支持目标选项 {0}。请使用 {1} 或更高版本。
1328 
1329 
1330 # 0: target, 1: target
1331 compiler.warn.option.parameters.unsupported=目标值 {0} 不支持 -parameters。请使用 {1} 或更高版本。
1332 
1333 compiler.warn.option.obsolete.suppression=要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。
1334 
1335 # 0: name, 1: number, 2: number, 3: number, 4: number
1336 compiler.warn.future.attr={1}.{2} 版类文件中引入的 {0} 属性在 {3}.{4} 版类文件中被忽略
1337 
1338 compiler.warn.requires.automatic=需要自动模块的指令
1339 
1340 compiler.warn.requires.transitive.automatic=需要自动模块的过渡指令
1341 
1342 # Warnings related to annotation processing
1343 # 0: string
1344 compiler.warn.proc.package.does.not.exist=程序包{0}不存在
1345 
1346 # 0: string
1347 compiler.warn.proc.file.reopening=尝试多次为 ''{0}'' 创建文件
1348 
1349 # 0: string
1350 compiler.warn.proc.type.already.exists=类型 ''{0}'' 的文件已经存在于源路径或类路径中
1351 
1352 # 0: string
1353 compiler.warn.proc.type.recreate=尝试多次创建类型 ''{0}'' 的文件
1354 
1355 # 0: string
1356 compiler.warn.proc.illegal.file.name=无法创建带有非法名称 ''{0}'' 的文件。
1357 
1358 # 0: string, 1: string
1359 compiler.warn.proc.suspicious.class.name=正在为名称以{1}结尾的类型创建文件: ''{0}''
1360 
1361 # 0: string
1362 compiler.warn.proc.file.create.last.round=将不对在最后一个循环中创建的类型为 ''{0}'' 的文件进行注释处理。
1363 
1364 # 0: string, 1: string
1365 compiler.warn.proc.malformed.supported.string=处理程序 ''{1}'' 为支持的注释类型返回格式错误的字符串 ''{0}''
1366 
1367 # 0: set of string
1368 compiler.warn.proc.annotations.without.processors=没有处理程序要使用以下任何注释: {0}
1369 
1370 # 0: source version, 1: string, 2: string
1371 compiler.warn.proc.processor.incompatible.source.version=来自注释处理程序 ''{1}'' 的受支持 source 版本 ''{0}'' 低于 -source ''{2}''
1372 
1373 compiler.warn.proc.proc-only.requested.no.procs=在未请求编译的情况下进行注释处理, 但找不到处理程序。
1374 
1375 compiler.warn.proc.use.implicit=注释处理不适用于隐式编译的文件。\n使用 -implicit 指定用于隐式编译的策略。
1376 
1377 compiler.warn.proc.use.proc.or.implicit=注释处理不适用于隐式编译的文件。\n使用 -proc:none 禁用注释处理或使用 -implicit 指定用于隐式编译的策略。
1378 
1379 # Print a client-generated warning; assumed to be localized, no translation required
1380 # 0: string
1381 compiler.warn.proc.messager={0}
1382 
1383 # 0: set of string
1384 compiler.warn.proc.unclosed.type.files=类型 ''{0}'' 的文件未关闭; 将不针对这些类型进行注释处理
1385 
1386 # 0: string
1387 compiler.warn.proc.unmatched.processor.options=以下选项未被任何处理程序识别: ''{0}''
1388 
1389 compiler.warn.try.explicit.close.call=在可自动结束的资源上显式调用 close()
1390 
1391 # 0: symbol
1392 compiler.warn.try.resource.not.referenced=不能在相应的 try 语句的正文中引用可自动结束的资源{0}
1393 
1394 # 0: type
1395 compiler.warn.try.resource.throws.interrupted.exc=可自动关闭的资源{0}包含的成员方法 close() 可能抛出 InterruptedException
1396 
1397 compiler.warn.unchecked.assign=未经检查的分配: 将{0}分配给{1}
1398 
1399 # 0: symbol, 1: type
1400 compiler.warn.unchecked.assign.to.var=对作为原始类型{1}的成员的变量{0}的分配未经过检查
1401 
1402 # 0: symbol, 1: type
1403 compiler.warn.unchecked.call.mbr.of.raw.type=对作为原始类型{1}的成员的{0}的调用未经过检查
1404 
1405 compiler.warn.unchecked.cast.to.type=向类型{0}的转换未经过检查
1406 
1407 # 0: kind name, 1: name, 2: object, 3: object, 4: kind name, 5: symbol
1408 compiler.warn.unchecked.meth.invocation.applied=方法调用未经过检查: 将{4} {5}中的{0} {1}应用到给定的类型\n需要: {2}\n找到: {3}
1409 
1410 # 0: type
1411 compiler.warn.unchecked.generic.array.creation=对于类型为{0}的 varargs 参数, 泛型数组创建未经过检查
1412 
1413 # 0: type
1414 compiler.warn.unchecked.varargs.non.reifiable.type=参数化 vararg 类型{0}的堆可能已受污染
1415 
1416 # 0: symbol
1417 compiler.warn.varargs.unsafe.use.varargs.param=Varargs 方法可能导致来自不可具体化 varargs 参数 {0} 的堆污染
1418 
1419 compiler.warn.missing.deprecated.annotation=未使用 @Deprecated 对已过时的项目进行注释
1420 
1421 # 0: kind name
1422 compiler.warn.deprecated.annotation.has.no.effect=@Deprecated 注释对此 {0} 声明没有任何效果
1423 
1424 # 0: string
1425 compiler.warn.invalid.path=无效文件名: {0}
1426 
1427 # 0: path
1428 compiler.warn.invalid.archive.file=以下路径中存在意外的文件: {0}
1429 
1430 # 0: path
1431 compiler.warn.unexpected.archive.file=以下档案文件存在意外的扩展名: {0}
1432 
1433 # 0: path
1434 compiler.err.no.zipfs.for.archive=没有任何文件系统提供方可处理此文件: {0}
1435 
1436 compiler.warn.div.zero=除数为零
1437 
1438 compiler.warn.empty.if=if 之后没有语句
1439 
1440 # 0: type, 1: name
1441 compiler.warn.annotation.method.not.found=无法找到类型 ''{0}'' 的注释方法 ''{1}()''
1442 
1443 # 0: type, 1: name, 2: message segment
1444 compiler.warn.annotation.method.not.found.reason=无法找到类型 ''{0}'' 的注释方法 ''{1}()'': {2}
1445 
1446 # 0: file object, 1: symbol, 2: name
1447 compiler.warn.unknown.enum.constant=未知的枚举常量 {1}.{2}
1448 
1449 # 0: file object, 1: symbol, 2: name, 3: message segment
1450 compiler.warn.unknown.enum.constant.reason=未知的枚举常量 {1}.{2}\n原因: {3}
1451 
1452 # 0: type, 1: type
1453 compiler.warn.raw.class.use=找到原始类型: {0}\n缺少泛型类{1}的类型参数
1454 
1455 compiler.warn.diamond.redundant.args=新表达式中存在冗余类型参数 (改用 diamond 运算符)。
1456 
1457 compiler.warn.local.redundant.type=本地变量的冗余类型 (使用 ''var'' 替换显式类型)。
1458 
1459 compiler.warn.potential.lambda.found=可将此匿名内部类创建转换为 lambda 表达式。
1460 
1461 compiler.warn.method.redundant.typeargs=方法调用中存在冗余类型参数。
1462 
1463 # 0: symbol, 1: message segment
1464 compiler.warn.varargs.redundant.trustme.anno=冗余的 {0} 注释。{1}
1465 
1466 # 0: symbol
1467 compiler.warn.access.to.member.from.serializable.element=可串行化元素对成员 {0} 的访问可以由不受信任的代码公开执行
1468 
1469 # 0: symbol
1470 compiler.warn.access.to.member.from.serializable.lambda=可串行化 lambda 对成员 {0} 的访问可以由不受信任的代码公开执行
1471 
1472 #####
1473 
1474 ## The following are tokens which are non-terminals in the language. They should
1475 ## be named as JLS3 calls them when translated to the appropriate language.
1476 compiler.misc.token.identifier=<标识符>
1477 
1478 compiler.misc.token.character=<字符>
1479 
1480 compiler.misc.token.string=<字符串>
1481 
1482 compiler.misc.token.integer=<整型>
1483 
1484 compiler.misc.token.long-integer=<长整型>
1485 
1486 compiler.misc.token.float=<浮点型>
1487 
1488 compiler.misc.token.double=<双精度型>
1489 
1490 compiler.misc.token.bad-symbol=<错误符号>
1491 
1492 compiler.misc.token.end-of-input=<输入结束>
1493 
1494 ## The argument to the following string will always be one of the following:
1495 ## 1. one of the above non-terminals
1496 ## 2. a keyword (JLS1.8)
1497 ## 3. a boolean literal (JLS3.10.3)
1498 ## 4. the null literal (JLS3.10.7)
1499 ## 5. a Java separator (JLS3.11)
1500 ## 6. an operator (JLS3.12)
1501 ##
1502 ## This is the only place these tokens will be used.
1503 # 0: token
1504 compiler.err.expected=需要{0}
1505 
1506 # 0: string
1507 compiler.err.expected.str=需要 {0}
1508 
1509 # 0: token, 1: token
1510 compiler.err.expected2=需要{0}或{1}
1511 
1512 # 0: token, 1: token, 2: token
1513 compiler.err.expected3=需要{0}, {1}或{2}
1514 
1515 compiler.err.premature.eof=进行语法分析时已到达文件结尾
1516 
1517 ## The following are related in form, but do not easily fit the above paradigm.
1518 compiler.err.expected.module=需要 ''module''
1519 
1520 compiler.err.expected.module.or.open=需要 ''module'' 或 ''open''
1521 
1522 compiler.err.dot.class.expected=需要 ''.class''
1523 
1524 ## The argument to this string will always be either 'case' or 'default'.
1525 # 0: token
1526 compiler.err.orphaned=孤立的{0}
1527 
1528 # 0: name
1529 compiler.misc.anonymous.class=<匿名{0}>
1530 
1531 # 0: name, 1: type
1532 compiler.misc.type.captureof=capture#{0}, 共 {1}
1533 
1534 compiler.misc.type.captureof.1=capture#{0}
1535 
1536 compiler.misc.type.none=<无>
1537 
1538 compiler.misc.unnamed.package=未命名程序包
1539 
1540 compiler.misc.unnamed.module=未命名模块
1541 
1542 #####
1543 
1544 # 0: symbol, 1: message segment
1545 compiler.err.cant.access=无法访问{0}\n{1}
1546 
1547 # 0: name
1548 compiler.misc.bad.class.file=类文件对于类 {0} 无效
1549 
1550 # 0: file name, 1: string (expected constant pool entry type), 2: number (constant pool index)
1551 compiler.misc.bad.const.pool.entry={0} 中错误的常量池条目\n预期为索引 {2} 处的 {1}
1552 
1553 # 0: file name, 1: message segment
1554 compiler.misc.bad.class.file.header=错误的类文件: {0}\n{1}\n请删除该文件或确保该文件位于正确的类路径子目录中。
1555 
1556 # 0: file name, 1: message segment
1557 compiler.misc.bad.source.file.header=错误的源文件: {0}\n{1}\n请删除该文件或确保该文件位于正确的源路径子目录中。
1558 
1559 ## The following are all possible strings for the second argument ({1}) of the
1560 ## above strings.
1561 compiler.misc.bad.class.signature=错误的类签名: {0}
1562 
1563 #0: symbol, 1: symbol
1564 compiler.misc.bad.enclosing.class={0}的封闭类错误: {1}
1565 
1566 # 0: symbol
1567 compiler.misc.bad.enclosing.method=类 {0} 的封闭方法属性错误
1568 
1569 compiler.misc.bad.runtime.invisible.param.annotations=错误的 RuntimeInvisibleParameterAnnotations 属性: {0}
1570 
1571 compiler.misc.bad.const.pool.tag=错误的常量池标记: {0}
1572 
1573 compiler.misc.bad.const.pool.tag.at=错误的常量池标记: {0}, 位于{1}
1574 
1575 compiler.misc.bad.signature=错误的签名: {0}
1576 
1577 compiler.misc.bad.type.annotation.value=错误的类型注释目标类型值: {0}
1578 
1579 compiler.misc.bad.module-info.name=错误的类名
1580 
1581 compiler.misc.class.file.wrong.class=类文件包含错误的类: {0}
1582 
1583 compiler.misc.module.info.invalid.super.class=带有无效超类的 module-info
1584 
1585 # 0: name
1586 compiler.misc.class.file.not.found=找不到{0}的类文件
1587 
1588 # 0: string (constant value), 1: symbol (constant field), 2: type (field type)
1589 compiler.misc.bad.constant.range={1} 的常量值 ''{0}'' 超出了 {2} 的预期范围
1590 
1591 # 0: string (constant value), 1: symbol (constant field), 2: string (expected class)
1592 compiler.misc.bad.constant.value={1} 的常量值 ''{0}'' 错误, 预期为 {2}
1593 
1594 # 0: string (classfile major version), 1: string (classfile minor version)
1595 compiler.misc.invalid.default.interface=在 {0}.{1} 版类文件中找到默认方法
1596 
1597 # 0: string (classfile major version), 1: string (classfile minor version)
1598 compiler.misc.invalid.static.interface=在 {0}.{1} 版类文件中找到静态方法
1599 
1600 # 0: string (classfile major version), 1: string (classfile minor version)
1601 compiler.misc.anachronistic.module.info=在 {0}.{1} 版类文件中找到模块声明
1602 
1603 # 0: name
1604 compiler.misc.file.doesnt.contain.class=文件不包含类{0}
1605 
1606 # 0: symbol
1607 compiler.misc.file.does.not.contain.package=文件不包含程序包{0}
1608 
1609 compiler.misc.file.does.not.contain.module=文件不包含模块声明
1610 
1611 compiler.misc.illegal.start.of.class.file=非法的类文件开始
1612 
1613 compiler.misc.unable.to.access.file=无法访问文件: {0}
1614 
1615 compiler.misc.unicode.str.not.supported=不支持类文件中的 Unicode 字符串
1616 
1617 compiler.misc.undecl.type.var=未声明的类型变量: {0}
1618 
1619 compiler.misc.malformed.vararg.method=类文件包含格式错误的变量元数方法: {0}
1620 
1621 compiler.misc.wrong.version=类文件具有错误的版本 {0}.{1}, 应为 {2}.{3}
1622 
1623 #####
1624 
1625 # 0: type, 1: type or symbol
1626 compiler.err.not.within.bounds=类型参数{0}不在类型变量{1}的范围内
1627 
1628 ## The following are all possible strings for the second argument ({1}) of the
1629 ## above string.
1630 
1631 ## none yet...
1632 
1633 #####
1634 
1635 # 0: message segment
1636 compiler.err.prob.found.req=不兼容的类型: {0}
1637 
1638 # 0: message segment
1639 compiler.misc.prob.found.req=不兼容的类型: {0}
1640 
1641 # 0: message segment, 1: type, 2: type
1642 compiler.warn.prob.found.req={0}\n需要: {2}\n找到:    {1}
1643 
1644 # 0: type, 1: type
1645 compiler.misc.inconvertible.types={0}无法转换为{1}
1646 
1647 # 0: type, 1: type
1648 compiler.misc.possible.loss.of.precision=从{0}转换到{1}可能会有损失
1649 
1650 compiler.misc.unchecked.assign=未经检查的转换
1651 
1652 # compiler.misc.storecheck=\
1653 #     assignment might cause later store checks to fail
1654 # compiler.misc.unchecked=\
1655 #     assigned array cannot dynamically check its stores
1656 compiler.misc.unchecked.cast.to.type=未经检查的转换
1657 
1658 # compiler.err.star.expected=\
1659 #     ''*'' expected
1660 # compiler.err.no.elem.type=\
1661 #     \[\*\] cannot have a type
1662 
1663 # 0: message segment
1664 compiler.misc.try.not.applicable.to.type=try-with-resources 不适用于变量类型\n({0})
1665 
1666 #####
1667 
1668 # 0: object, 1: message segment
1669 compiler.err.type.found.req=意外的类型\n需要: {1}\n找到:    {0}
1670 
1671 ## The following are all possible strings for the first argument ({0}) of the
1672 ## above string.
1673 compiler.misc.type.req.class=类
1674 
1675 compiler.misc.type.req.class.array=类或数组
1676 
1677 compiler.misc.type.req.array.or.iterable=数组或 java.lang.Iterable
1678 
1679 compiler.misc.type.req.ref=引用
1680 
1681 compiler.misc.type.req.exact=不带限制范围的类或接口
1682 
1683 # 0: type
1684 compiler.misc.type.parameter=类型参数{0}
1685 
1686 #####
1687 
1688 ## The following are all possible strings for the last argument of all those
1689 ## diagnostics whose key ends in ".1"
1690 
1691 # 0: type, 1: list of type
1692 compiler.misc.no.unique.maximal.instance.exists=对于上限为{1}的类型变量{0}, 不存在唯一最大实例
1693 
1694 # 0: type, 1: list of type
1695 compiler.misc.no.unique.minimal.instance.exists=对于下限为{1}的类型变量{0}, 不存在唯一最小实例
1696 
1697 # 0: type, 1: list of type
1698 compiler.misc.incompatible.upper.bounds=推论变量 {0} 具有不兼容的上限 {1}
1699 
1700 # 0: type, 1: list of type
1701 compiler.misc.incompatible.eq.bounds=推论变量{0}具有不兼容的等式约束条件{1}
1702 
1703 # 0: type, 1: fragment, 2: fragment
1704 compiler.misc.incompatible.bounds=推论变量 {0} 具有不兼容的上限\n{1}\n{2}
1705 
1706 # 0: list of type
1707 compiler.misc.lower.bounds=下限:{0}
1708 
1709 # 0: list of type
1710 compiler.misc.eq.bounds=等式约束条件:{0}
1711 
1712 # 0: list of type
1713 compiler.misc.upper.bounds=下限:{0}
1714 
1715 # 0: list of type, 1: type, 2: type
1716 compiler.misc.infer.no.conforming.instance.exists=不存在类型变量{0}的实例, 以使{1}与{2}一致
1717 
1718 # 0: list of type, 1: message segment
1719 compiler.misc.infer.no.conforming.assignment.exists=无法推断类型变量 {0}\n(参数不匹配; {1})
1720 
1721 # 0: list of type
1722 compiler.misc.infer.arg.length.mismatch=无法推断类型变量 {0}\n(实际参数列表和形式参数列表长度不同)
1723 
1724 # 0: list of type, 1: message segment
1725 compiler.misc.infer.varargs.argument.mismatch=无法推断类型变量 {0}\n(varargs 不匹配; {1})
1726 
1727 # 0: type, 1: list of type
1728 compiler.misc.inferred.do.not.conform.to.upper.bounds=推断类型不符合上限\n推断: {0}\n上限: {1}
1729 
1730 # 0: type, 1: list of type
1731 compiler.misc.inferred.do.not.conform.to.lower.bounds=推断类型不符合下限\n推断: {0}\n下限: {1}
1732 
1733 # 0: type, 1: list of type
1734 compiler.misc.inferred.do.not.conform.to.eq.bounds=推断类型不符合等式约束条件\n推断: {0}\n等式约束条件: {1}
1735 
1736 # 0: symbol
1737 compiler.misc.diamond={0}<>
1738 
1739 # 0: type
1740 compiler.misc.diamond.non.generic=无法将 ''<>'' 与非泛型类{0}一起使用
1741 
1742 # 0: list of type, 1: message segment
1743 compiler.misc.diamond.invalid.arg=此上下文中不允许使用为{1}推断的类型参数{0}\n推断参数在签名属性中无法表达
1744 
1745 # 0: list of type, 1: message segment
1746 compiler.misc.diamond.invalid.args=此上下文中不允许使用为{1}推断的类型参数{0}\n推断参数在签名属性中无法表达
1747 
1748 # 0: type
1749 compiler.misc.diamond.and.explicit.params=不能将 ''<>'' 与构造器的显式类型参数一起使用
1750 
1751 compiler.misc.mref.infer.and.explicit.params=不能将原始构造器引用与构造器的显式类型参数一起使用
1752 
1753 # 0: type, 1: list of type
1754 compiler.misc.explicit.param.do.not.conform.to.bounds=显式类型参数{0}不符合声明的范围{1}
1755 
1756 compiler.misc.arg.length.mismatch=实际参数列表和形式参数列表长度不同
1757 
1758 # 0: string
1759 compiler.misc.wrong.number.type.args=类型变量数目错误; 需要{0}
1760 
1761 # 0: message segment
1762 compiler.misc.no.conforming.assignment.exists=参数不匹配; {0}
1763 
1764 # 0: message segment
1765 compiler.misc.varargs.argument.mismatch=varargs 不匹配; {0}
1766 
1767 #####
1768 
1769 # 0: symbol or type, 1: file name
1770 compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file={1} 中的辅助类{0}不应从其自身的源文件以外访问
1771 
1772 ## The first argument ({0}) is a "kindname".
1773 # 0: kind name, 1: symbol, 2: symbol
1774 compiler.err.abstract.cant.be.accessed.directly=无法直接访问{2}中的抽象{0} {1}
1775 
1776 ## The first argument ({0}) is a "kindname".
1777 # 0: symbol kind, 1: symbol
1778 compiler.err.non-static.cant.be.ref=无法从静态上下文中引用非静态 {0} {1}
1779 
1780 # 0: symbol kind, 1: symbol
1781 compiler.misc.bad.static.method.in.unbound.lookup=在未绑定查找中找到意外的静态 {0} {1}
1782 
1783 # 0: symbol kind, 1: symbol
1784 compiler.misc.bad.instance.method.in.unbound.lookup=在未绑定查找中找到意外的实例 {0} {1}
1785 
1786 # 0: symbol kind, 1: symbol
1787 compiler.misc.bad.static.method.in.bound.lookup=在绑定查找中找到意外的静态 {0} {1}
1788 
1789 ## Both arguments ({0}, {1}) are "kindname"s.  {0} is a comma-separated list
1790 ## of kindnames (the list should be identical to that provided in source.
1791 # 0: set of kind name, 1: set of kind name
1792 compiler.err.unexpected.type=意外的类型\n需要: {0}\n找到:    {1}
1793 
1794 compiler.err.unexpected.lambda=此处不应为 lambda 表达式
1795 
1796 compiler.err.unexpected.mref=此处不应为方法引用
1797 
1798 ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.)
1799 ## The second argument {1} is the non-resolved symbol
1800 ## The third argument {2} is a list of type parameters (non-empty if {1} is a method)
1801 ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method)
1802 # 0: kind name, 1: name, 2: unused, 3: unused
1803 compiler.err.cant.resolve=找不到符号\n符号: {0} {1}
1804 
1805 # 0: kind name, 1: name, 2: unused, 3: list of type
1806 compiler.err.cant.resolve.args=找不到符号\n符号: {0} {1}({3})
1807 
1808 # 0: kind name, 1: name, 2: unused, 3: list of type
1809 compiler.misc.cant.resolve.args=找不到符号\n符号: {0} {1}({3})
1810 
1811 # 0: kind name, 1: name, 2: list of type, 3: list of type
1812 compiler.err.cant.resolve.args.params=找不到符号\n符号: {0} <{2}>{1}({3})
1813 
1814 ## arguments from {0} to {3} have the same meaning as above
1815 ## The fifth argument {4} is a location subdiagnostic (see below)
1816 # 0: kind name, 1: name, 2: unused, 3: unused, 4: message segment
1817 compiler.err.cant.resolve.location=找不到符号\n符号:   {0} {1}\n位置: {4}
1818 
1819 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
1820 compiler.err.cant.resolve.location.args=找不到符号\n符号:   {0} {1}({3})\n位置: {4}
1821 
1822 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
1823 compiler.err.cant.resolve.location.args.params=找不到符号\n符号:   {0} <{2}>{1}({3})\n位置: {4}
1824 
1825 ### Following are replicated/used for method reference diagnostics
1826 
1827 # 0: kind name, 1: name, 2: unused, 3: list of type, 4: message segment
1828 compiler.misc.cant.resolve.location.args=找不到符号\n符号:   {0} {1}({3})\n位置: {4}
1829 
1830 # 0: kind name, 1: name, 2: list of type, 3: list, 4: message segment
1831 compiler.misc.cant.resolve.location.args.params=找不到符号\n符号:   {0} <{2}>{1}({3})\n位置: {4}
1832 
1833 ##a location subdiagnostic is composed as follows:
1834 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
1835 ## The second argument {1} is the location name
1836 ## The third argument {2} is the location type (only when {1} is a variable name)
1837 
1838 # 0: kind name, 1: type or symbol, 2: unused
1839 compiler.misc.location={0} {1}
1840 
1841 # 0: kind name, 1: symbol, 2: type
1842 compiler.misc.location.1=类型为{2}的{0} {1}
1843 
1844 ## The following are all possible string for "kindname".
1845 ## They should be called whatever the JLS calls them after it been translated
1846 ## to the appropriate language.
1847 # compiler.misc.kindname.constructor=\
1848 #     static member
1849 compiler.misc.kindname.annotation=@interface
1850 
1851 compiler.misc.kindname.constructor=构造器
1852 
1853 compiler.misc.kindname.enum=枚举
1854 
1855 compiler.misc.kindname.interface=接口
1856 
1857 compiler.misc.kindname.static=静态
1858 
1859 compiler.misc.kindname.type.variable=类型变量
1860 
1861 compiler.misc.kindname.type.variable.bound=类型变量的限制范围
1862 
1863 compiler.misc.kindname.variable=变量
1864 
1865 compiler.misc.kindname.value=值
1866 
1867 compiler.misc.kindname.method=方法
1868 
1869 compiler.misc.kindname.class=类
1870 
1871 compiler.misc.kindname.package=程序包
1872 
1873 compiler.misc.kindname.module=模块
1874 
1875 compiler.misc.kindname.static.init=静态初始化程序
1876 
1877 compiler.misc.kindname.instance.init=实例初始化程序
1878 
1879 # the following are names of tree kinds:
1880 compiler.misc.tree.tag.forloop=for
1881 
1882 compiler.misc.tree.tag.foreachloop=for
1883 
1884 compiler.misc.tree.tag.whileloop=while
1885 
1886 compiler.misc.tree.tag.doloop=do
1887 
1888 compiler.misc.tree.tag.switch=switch
1889 
1890 #####
1891 
1892 compiler.misc.no.args=没有参数
1893 
1894 # 0: message segment
1895 compiler.err.override.static={0}\n覆盖的方法为 static
1896 
1897 # 0: message segment, 1: set of flag
1898 compiler.err.override.meth={0}\n被覆盖的方法为{1}
1899 
1900 # 0: message segment, 1: type
1901 compiler.err.override.meth.doesnt.throw={0}\n被覆盖的方法未抛出{1}
1902 
1903 # In the following string {1} is a space separated list of Java Keywords, as
1904 # they would have been declared in the source code
1905 # 0: message segment, 1: set of flag or string
1906 compiler.err.override.weaker.access={0}\n正在尝试分配更低的访问权限; 以前为{1}
1907 
1908 # 0: message segment, 1: type, 2: type
1909 compiler.err.override.incompatible.ret={0}\n返回类型{1}与{2}不兼容
1910 
1911 # 0: message segment, 1: type, 2: type
1912 compiler.warn.override.unchecked.ret={0}\n返回类型需要从{1}到{2}的未经检查的转换
1913 
1914 # 0: message segment, 1: type
1915 compiler.warn.override.unchecked.thrown={0}\n被覆盖的方法未抛出{1}
1916 
1917 # 0: symbol
1918 compiler.warn.override.equals.but.not.hashcode=类{0}覆盖了 equals, 但该类或任何超类都未覆盖 hashCode 方法
1919 
1920 ## The following are all possible strings for the first argument ({0}) of the
1921 ## above strings.
1922 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1923 compiler.misc.cant.override={1}中的{0}无法覆盖{3}中的{2}
1924 
1925 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1926 compiler.misc.cant.hide={1} 中的 {0} 无法隐藏 {3} 中的 {2}
1927 
1928 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1929 compiler.misc.cant.implement={1}中的{0}无法实现{3}中的{2}
1930 
1931 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1932 compiler.misc.clashes.with={1}中的{0}与{3}中的{2}冲突
1933 
1934 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1935 compiler.misc.unchecked.override={1}中的{0}覆盖了{3}中的{2}
1936 
1937 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1938 compiler.misc.unchecked.implement={1}中的{0}实现了{3}中的{2}
1939 
1940 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1941 compiler.misc.unchecked.clash.with={1}中的{0}覆盖了{3}中的{2}
1942 
1943 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1944 compiler.misc.varargs.override={1}中的{0}覆盖了{3}中的{2}
1945 
1946 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1947 compiler.misc.varargs.implement={1}中的{0}实现了{3}中的{2}
1948 
1949 # 0: symbol, 1: symbol, 2: symbol, 3: symbol
1950 compiler.misc.varargs.clash.with={1}中的{0}覆盖了{3}中的{2}
1951 
1952 # 0: kind name, 1: symbol, 2: symbol, 3: message segment
1953 compiler.misc.inapplicable.method={0} {1}.{2}不适用\n({3})
1954 
1955 ########################################
1956 # Diagnostics for language feature changes.
1957 # Such diagnostics have a common template which can be customized by using a feature
1958 # diagnostic fragment (one of those given below).
1959 ########################################
1960 
1961 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
1962 compiler.err.feature.not.supported.in.source=-source {1} 中不支持 {0}\n(请使用 -source {2} 或更高版本以启用 {0})
1963 
1964 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
1965 compiler.err.feature.not.supported.in.source.plural=-source {1} 中不支持 {0}\n(请使用 -source {2} 或更高版本以启用 {0})
1966 
1967 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
1968 compiler.misc.feature.not.supported.in.source=-source {1} 中不支持 {0}\n(请使用 -source {2} 或更高版本以启用 {0})
1969 
1970 # 0: message segment (feature), 1: string (found version), 2: string (expected version)
1971 compiler.misc.feature.not.supported.in.source.plural=-source {1} 中不支持 {0}\n(请使用 -source {2} 或更高版本以启用 {0})
1972 
1973 # 0: message segment (feature)
1974 compiler.err.preview.feature.disabled={0} 是预览功能,默认情况下禁用。\n(请使用 --enable-preview 以启用 {0})
1975 
1976 # 0: message segment (feature)
1977 compiler.err.preview.feature.disabled.plural={0} 是预览功能,默认情况下禁用。\n(请使用 --enable-preview 以启用 {0})
1978 
1979 # 0: file object (classfile), 1: string (expected version)
1980 compiler.err.preview.feature.disabled.classfile={0} 的类文件使用 Java SE {1} 的预览功能。\n(请使用 --enable-preview 以允许加载包含预览功能的类文件)
1981 
1982 # 0: message segment (feature)
1983 compiler.warn.preview.feature.use={0} 是预览功能,可能会在未来发行版中删除。
1984 
1985 # 0: message segment (feature)
1986 compiler.warn.preview.feature.use.plural={0} 是预览功能,可能会在未来发行版中删除。
1987 
1988 # 0: file object (classfile), 1: string (expected version)
1989 compiler.warn.preview.feature.use.classfile={0} 的类文件使用 Java SE {1} 的预览功能。
1990 
1991 
1992 compiler.misc.feature.modules=模块
1993 
1994 compiler.misc.feature.diamond.and.anon.class=''<>'' 具有匿名的内部类
1995 
1996 compiler.misc.feature.var.in.try.with.resources=try-with-resources 中的变量
1997 
1998 compiler.misc.feature.type.annotations=类型注释
1999 
2000 compiler.misc.feature.annotations.after.type.params=在方法类型参数之后的注释
2001 
2002 compiler.misc.feature.repeatable.annotations=重复的注释
2003 
2004 compiler.misc.feature.diamond=diamond 运算符
2005 
2006 compiler.misc.feature.lambda=lambda 表达式
2007 
2008 compiler.misc.feature.method.references=方法引用
2009 
2010 compiler.misc.feature.default.methods=默认方法
2011 
2012 compiler.misc.feature.intersection.types.in.cast=交叉类型
2013 
2014 compiler.misc.feature.static.intf.methods=静态接口方法
2015 
2016 compiler.misc.feature.static.intf.method.invoke=静态接口方法调用
2017 
2018 compiler.misc.feature.private.intf.methods=私有接口方法
2019 
2020 compiler.misc.feature.multiple.case.labels=多个 case 标签
2021 
2022 compiler.misc.feature.switch.rules=switch 规则
2023 
2024 compiler.misc.feature.switch.expressions=switch 表达式
2025 
2026 compiler.misc.feature.raw.string.literals=原始字符串文字
2027 
2028 compiler.misc.feature.var.syntax.in.implicit.lambda=隐式 lambda 中的 var 语法
2029 
2030 compiler.warn.underscore.as.identifier=从发行版 9 开始, ''_'' 为关键字, 不能用作标识符
2031 
2032 compiler.err.underscore.as.identifier=从发行版 9 开始, ''_'' 为关键字, 不能用作标识符
2033 
2034 compiler.err.underscore.as.identifier.in.lambda=''_'' 用作标识符\n(对于 lambda 参数, 禁止将 ''_'' 用作标识符)
2035 
2036 compiler.err.enum.as.identifier=从发行版 5 开始, ''enum'' 为关键字, 不能用作标识符
2037 
2038 compiler.err.assert.as.identifier=从发行版 1.4 开始, ''assert'' 为关键字, 不能用作标识符
2039 
2040 # TODO 308: make a better error message
2041 compiler.err.this.as.identifier=从发行版 8 开始,''this'' 只能作为接收方类型的参数名,\n该参数必须为第一个参数,并且不能是 lambda 参数
2042 
2043 compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=接收方参数不适用于顶层类的构造器
2044 
2045 # TODO 308: make a better error message
2046 # 0: annotation
2047 compiler.err.cant.type.annotate.scoping.1=无法使用 type-use 注释 {0} 来注释确定作用域结构
2048 
2049 # TODO 308: make a better error message
2050 # 0: list of annotation
2051 compiler.err.cant.type.annotate.scoping=无法使用 type-use 注释 {0} 来注释确定作用域结构
2052 
2053 # 0: type, 1: type
2054 compiler.err.incorrect.receiver.name=接收方名称与封闭类类型不匹配\n需要: {0}\n找到: {1}
2055 
2056 # 0: type, 1: type
2057 compiler.err.incorrect.receiver.type=接收方类型与封闭类类型不匹配\n需要: {0}\n找到: {1}
2058 
2059 # 0: type, 1: type
2060 compiler.err.incorrect.constructor.receiver.type=接收方类型与外部封闭类类型不匹配\n需要: {0}\n找到: {1}
2061 
2062 # 0: type, 1: type
2063 compiler.err.incorrect.constructor.receiver.name=接收方名称与外部封闭类类型不匹配\n需要: {0}\n找到: {1}
2064 
2065 compiler.err.no.annotations.on.dot.class=类文字类型中不允许使用任何注释
2066 
2067 ########################################
2068 # Diagnostics for verbose resolution
2069 # used by Resolve (debug only)
2070 ########################################
2071 
2072 # 0: number, 1: symbol, 2: unused
2073 compiler.misc.applicable.method.found=找到第 {0} 个适用方法: {1}
2074 
2075 # 0: number, 1: symbol, 2: message segment
2076 compiler.misc.applicable.method.found.1=找到第 {0} 个适用方法: {1}\n({2})
2077 
2078 # 0: number, 1: symbol, 2: message segment
2079 compiler.misc.not.applicable.method.found=找到第 {0} 个不适用的方法: {1}\n({2})
2080 
2081 # 0: type
2082 compiler.misc.partial.inst.sig=部分实例化为: {0}
2083 
2084 # 0: name, 1: symbol, 2: number, 3: string (method resolution phase), 4: list of type or message segment, 5: list of type or message segment
2085 compiler.note.verbose.resolve.multi=将类型 {1} 的方法 {0} 解析为候选项 {2}\n阶段: {3}\n具有实际值: {4}\n具有类型参数: {5}\n候选项:
2086 
2087 # 0: name, 1: symbol, 2: unused, 3: string (method resolution phase), 4: list of type or message segment, 5: list of type or message segment
2088 compiler.note.verbose.resolve.multi.1=类型 {1} 的方法 {0} 解析错误\n阶段: {3}\n具有实际值: {4}\n具有类型参数: {5}\n候选项:
2089 
2090 # 0: symbol, 1: type, 2: type
2091 compiler.note.deferred.method.inst=方法 {0} 的延迟实例化\n实例化签名: {1}\n目标类型: {2}
2092 
2093 ########################################
2094 # Diagnostics for lambda deduplication
2095 # used by LambdaToMethod (debug only)
2096 ########################################
2097 
2098 # 0: symbol
2099 compiler.note.verbose.l2m.deduplicate=正在对 lambda 函数实现方法 {0} 进行重复数据删除
2100 
2101 ########################################
2102 # Diagnostics for where clause implementation
2103 # used by the RichDiagnosticFormatter.
2104 ########################################
2105 
2106 compiler.misc.type.null=<空值>
2107 
2108 # X#n (where n is an int id) is disambiguated tvar name
2109 # 0: name, 1: number
2110 compiler.misc.type.var={0}#{1}
2111 
2112 # CAP#n (where n is an int id) is an abbreviation for 'captured type'
2113 # 0: number
2114 compiler.misc.captured.type=CAP#{0}
2115 
2116 # <INT#n> (where n is an int id) is an abbreviation for 'intersection type'
2117 # 0: number
2118 compiler.misc.intersection.type=INT#{0}
2119 
2120 # where clause for captured type: contains upper ('extends {1}') and lower
2121 # ('super {2}') bound along with the wildcard that generated this captured type ({3})
2122 # 0: type, 1: type, 2: type, 3: type
2123 compiler.misc.where.captured={0}从{3}的捕获扩展{1} 超 {2}
2124 
2125 # compact where clause for captured type: contains upper ('extends {1}') along
2126 # with the wildcard that generated this captured type ({3})
2127 # 0: type, 1: type, 2: unused, 3: type
2128 compiler.misc.where.captured.1={0}从{3}的捕获扩展{1}
2129 
2130 # where clause for type variable: contains upper bound(s) ('extends {1}') along with
2131 # the kindname ({2}) and location ({3}) in which the typevar has been declared
2132 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2133 compiler.misc.where.typevar={0}扩展已在{2} {3}中声明的{1}
2134 
2135 # compact where clause for type variable: contains the kindname ({2}) and location ({3})
2136 # in which the typevar has been declared
2137 # 0: type, 1: list of type, 2: symbol kind, 3: symbol
2138 compiler.misc.where.typevar.1={0}已在{2} {3}中声明
2139 
2140 # where clause for fresh type variable: contains upper bound(s) ('extends {1}').
2141 # Since a fresh type-variable is synthetic - there's no location/kindname here.
2142 # 0: type, 1: list of type
2143 compiler.misc.where.fresh.typevar={0}扩展{1}
2144 
2145 # where clause for type variable: contains all the upper bound(s) ('extends {1}')
2146 # of this intersection type
2147 # 0: type, 1: list of type
2148 compiler.misc.where.intersection={0}扩展{1}
2149 
2150 ### Where clause headers ###
2151 compiler.misc.where.description.captured=其中, {0}是新类型变量:
2152 
2153 # 0: set of type
2154 compiler.misc.where.description.typevar=其中, {0}是类型变量:
2155 
2156 # 0: set of type
2157 compiler.misc.where.description.intersection=其中, {0}是交叉类型:
2158 
2159 # 0: set of type
2160 compiler.misc.where.description.captured.1=其中, {0}是新类型变量:
2161 
2162 # 0: set of type
2163 compiler.misc.where.description.typevar.1=其中, {0}是类型变量:
2164 
2165 # 0: set of type
2166 compiler.misc.where.description.intersection.1=其中, {0}是交叉类型:
2167 
2168 ###
2169 # errors related to doc comments
2170 
2171 compiler.err.dc.bad.entity=HTML 实体错误
2172 
2173 compiler.err.dc.bad.gt=''>'' 的用法错误
2174 
2175 compiler.err.dc.bad.inline.tag=内嵌标记的用法不正确
2176 
2177 compiler.err.dc.identifier.expected=需要标识符
2178 
2179 compiler.err.dc.malformed.html=格式错误的 HTML
2180 
2181 compiler.err.dc.missing.semicolon=缺少分号
2182 
2183 compiler.err.dc.no.content=无内容
2184 
2185 compiler.err.dc.no.tag.name='@' 后没有标记名
2186 
2187 compiler.err.dc.gt.expected=需要 ''>''
2188 
2189 compiler.err.dc.ref.bad.parens=引用中缺少 '')''
2190 
2191 compiler.err.dc.ref.syntax.error=引用中出现语法错误
2192 
2193 compiler.err.dc.ref.unexpected.input=意外的文本
2194 
2195 compiler.err.dc.unexpected.content=意外的内容
2196 
2197 compiler.err.dc.unterminated.inline.tag=未终止的内嵌标记
2198 
2199 compiler.err.dc.unterminated.signature=未终止的签名
2200 
2201 compiler.err.dc.unterminated.string=未终止的字符串
2202 
2203 ###
2204 # errors related to modules
2205 
2206 compiler.err.expected.module=预期 ''module''
2207 
2208 # 0: symbol
2209 compiler.err.module.not.found=找不到模块: {0}
2210 
2211 # 0: symbol
2212 compiler.warn.module.not.found=找不到模块: {0}
2213 
2214 compiler.err.too.many.modules=找到太多的模块声明
2215 
2216 compiler.err.module.not.found.on.module.source.path=在模块源路径中找不到模块
2217 
2218 compiler.err.not.in.module.on.module.source.path=不在模块源路径上的模块中
2219 
2220 # 0: symbol
2221 compiler.err.duplicate.module=重复的模块: {0}
2222 
2223 # 0: symbol
2224 compiler.err.duplicate.requires=重复的 requires 指令: {0}
2225 
2226 # 0: symbol
2227 compiler.err.conflicting.exports=重复或冲突的导出操作: {0}
2228 
2229 # 0: symbol
2230 compiler.err.conflicting.opens=重复或冲突的打开操作: {0}
2231 
2232 # 0: symbol
2233 compiler.err.conflicting.exports.to.module=重复或冲突的导出到模块操作: {0}
2234 
2235 # 0: symbol
2236 compiler.err.conflicting.opens.to.module=重复或冲突的打开到模块操作: {0}
2237 
2238 compiler.err.no.opens.unless.strong=只允许在强模块中使用 ''opens''
2239 
2240 # 0: symbol
2241 compiler.err.repeated.provides.for.service=服务 {0} 有多个 ''provides''
2242 
2243 # 0: symbol, 1: symbol
2244 compiler.err.duplicate.provides=重复的 provides 指令: 服务 {0}, 实现 {1}
2245 
2246 # 0: symbol
2247 compiler.err.duplicate.uses=重复的 uses 指令: {0}
2248 
2249 # 0: symbol
2250 compiler.err.service.implementation.is.abstract=服务实现是抽象类: {0}
2251 
2252 compiler.err.service.implementation.must.be.subtype.of.service.interface=服务实现类型必须是服务接口类型的子类型, 或者具有名为 "provider" 的, 返回服务实现的公共静态无参数方法
2253 
2254 compiler.err.service.implementation.provider.return.must.be.subtype.of.service.interface="provider" 方法返回类型必须是服务接口类型的子类型
2255 
2256 # 0: symbol
2257 compiler.err.service.implementation.is.inner=服务实现是内部类: {0}
2258 
2259 # 0: symbol
2260 compiler.err.service.definition.is.enum=服务定义是枚举: {0}
2261 
2262 # 0: symbol
2263 compiler.err.service.implementation.doesnt.have.a.no.args.constructor=服务实现没有默认的构造器: {0}
2264 
2265 # 0: symbol
2266 compiler.err.service.implementation.no.args.constructor.not.public=服务实现的无参数构造器不是公共构造器: {0}
2267 
2268 # 0: symbol
2269 compiler.err.package.empty.or.not.found=程序包为空或不存在: {0}
2270 
2271 # 0: symbol
2272 compiler.warn.package.empty.or.not.found=程序包为空或不存在: {0}
2273 
2274 compiler.err.no.output.dir=未指定类输出目录
2275 
2276 compiler.err.unnamed.pkg.not.allowed.named.modules=命名模块中不允许未命名程序包
2277 
2278 # 0: name, 1: name
2279 compiler.err.module.name.mismatch=模块名称 {0} 与预期名称 {1} 不匹配
2280 
2281 # 0: name, 1: name
2282 compiler.misc.module.name.mismatch=模块名称 {0} 与预期名称 {1} 不匹配
2283 
2284 # 0: name
2285 compiler.err.module.non.zero.opens=打开的模块 {0} 具有非零 opens_count
2286 
2287 # 0: name
2288 compiler.misc.module.non.zero.opens=打开的模块 {0} 具有非零 opens_count
2289 
2290 compiler.err.module.decl.sb.in.module-info.java=模块声明应该在名为 module-info.java 的文件中
2291 
2292 # 0: set of string
2293 compiler.err.too.many.patched.modules=太多打补丁的模块 ({0}), 请使用 --module-source-path
2294 
2295 # 0: name, 1: name
2296 compiler.err.file.patched.and.msp=可从 --patch-module 和 --module-source-path 访问文件, 但该文件在每个路径中属于不同的模块: {0}, {1}
2297 
2298 compiler.err.processorpath.no.processormodulepath=-processorpath 与 --processor-module-path 的组合非法
2299 
2300 # 0: symbol
2301 compiler.err.package.in.other.module=程序包已存在于另一个模块中: {0}
2302 
2303 # 0: symbol, 1: name, 2: symbol, 3: symbol
2304 compiler.err.package.clash.from.requires=模块 {0} 同时从 {2} 和 {3} 读取程序包 {1}
2305 
2306 # 0: name, 1: symbol, 2: symbol
2307 compiler.err.package.clash.from.requires.in.unnamed=未命名的模块同时从 {1} 和 {2} 读取程序包 {0}
2308 
2309 # 0: string
2310 compiler.err.module.not.found.in.module.source.path=在模块源路径中找不到模块 {0}
2311 
2312 compiler.err.output.dir.must.be.specified.with.dash.m.option=如果使用 -m 选项, 则必须指定类输出目录
2313 
2314 compiler.err.modulesourcepath.must.be.specified.with.dash.m.option=如果使用 -m 选项, 则必须指定模块源路径
2315 
2316 # 0: symbol
2317 compiler.err.service.implementation.not.in.right.module=必须在与 provides 指令相同的模块中定义服务实现
2318 
2319 # 0: symbol
2320 compiler.err.cyclic.requires=涉及 {0} 的循环被依赖对象
2321 
2322 # 0: fragment, 1: name
2323 compiler.err.duplicate.module.on.path={1} 中的 {0} 上存在\n重复的模块
2324 
2325 # 0: option name, 1: string
2326 compiler.warn.bad.name.for.option={0} 选项的值中有错误的名称: ''{1}''
2327 
2328 # 0: option name, 1: string
2329 compiler.err.bad.name.for.option={0} 选项的值中有错误的名称: ''{1}''
2330 
2331 # 0: option name, 1: symbol
2332 compiler.warn.module.for.option.not.found=找不到 {0} 选项中的模块名称: {1}
2333 
2334 compiler.err.addmods.all.module.path.invalid=--add-modules ALL-MODULE-PATH 只能在编译未命名模块时使用
2335 
2336 # 0: symbol
2337 compiler.err.add.exports.with.release=不允许在使用 --release 时从系统模块 {0} 导出程序包:
2338 
2339 # 0: symbol
2340 compiler.err.add.reads.with.release=不允许在使用 --release 时为系统模块 {0} 添加读取维边:
2341 
2342 compiler.warn.addopens.ignored=--add-opens 在编译时没有任何效果
2343 
2344 compiler.misc.locn.module_source_path=模块源路径
2345 
2346 compiler.misc.locn.upgrade_module_path=升级模块路径
2347 
2348 compiler.misc.locn.system_modules=系统模块
2349 
2350 compiler.misc.locn.module_path=应用程序模块路径
2351 
2352 compiler.misc.cant.resolve.modules=无法解析模块
2353 
2354 compiler.misc.bad.requires.flag=错误的请求标记:{0}
2355 
2356 # 0: string
2357 compiler.err.invalid.module.specifier=不允许模块说明符: {0}
2358 
2359 # 0: symbol
2360 compiler.warn.service.provided.but.not.exported.or.used=已提供服务接口, 但未导出或使用服务接口
2361 
2362 # 0: kind name, 1: symbol, 2: symbol
2363 compiler.warn.leaks.not.accessible=模块 {2} 中的 {0} {1} 对需要该模块的客户机不可访问
2364 # 0: kind name, 1: symbol, 2: symbol
2365 compiler.warn.leaks.not.accessible.unexported=未导出模块 {2} 中的 {0} {1}
2366 # 0: kind name, 1: symbol, 2: symbol
2367 compiler.warn.leaks.not.accessible.not.required.transitive=未使用 ''requires transitive'' 间接导出模块 {2} 中的 {0} {1}
2368 # 0: kind name, 1: symbol, 2: symbol
2369 compiler.warn.leaks.not.accessible.unexported.qualified=模块 {2} 中的 {0} {1} 可能对需要该模块的所有客户机都不可见
2370 
2371 ###
2372 # errors related to options
2373 
2374 # 0: string, 1: string
2375 compiler.err.illegal.argument.for.option={0} 的参数非法: {1}
2376 
2377 compiler.err.switch.null.not.allowed=case 中不允许使用空标签
2378 
2379 compiler.err.switch.case.unexpected.statement=case 中存在意外语句,应为表达式、块或抛出语句
2380 
2381 compiler.err.switch.mixing.case.types=在 switch 中使用了不同 case 类型
2382 
2383 ############################################
2384 # messages previouly at javac.properties
2385 
2386 compiler.err.empty.A.argument=-A 需要一个参数; 使用 ''-Akey'' 或 ''-Akey=value''
2387 
2388 # 0: string
2389 compiler.err.invalid.A.key=注释处理程序选项 ''{0}'' 中的关键字不是以点分隔的标识符序列
2390 
2391 # 0: string
2392 compiler.err.invalid.flag=无效的标记: {0}
2393 
2394 compiler.err.profile.bootclasspath.conflict=概要信息和引导类路径选项不能同时使用
2395 
2396 # 0: string
2397 compiler.err.invalid.profile=无效的配置文件:{0}
2398 
2399 # 0: string
2400 compiler.err.invalid.target=无效的目标发行版:{0}
2401 
2402 # 0: option name, 1: target
2403 compiler.err.option.not.allowed.with.target=目标 {1} 不允许选项 {0}
2404 
2405 # 0: string
2406 compiler.err.option.too.many=选项 {0} 只能指定一次
2407 
2408 compiler.err.no.source.files=无源文件
2409 
2410 compiler.err.no.source.files.classes=无源文件或类名
2411 
2412 # 0: string
2413 compiler.err.req.arg={0} 需要参数
2414 
2415 # 0: string
2416 compiler.err.invalid.source=无效的源发行版:{0}
2417 
2418 # 0: string, 1: string
2419 compiler.err.error.writing.file=写入 {0} 时出错;{1}
2420 
2421 compiler.err.sourcepath.modulesourcepath.conflict=无法同时指定 --source-path 与 --module-source-path
2422 
2423 # 0: string, 1: target
2424 compiler.warn.source.target.conflict=源发行版 {0} 需要目标发行版 {1}
2425 
2426 # 0: string, 1: target
2427 compiler.warn.target.default.source.conflict=目标发行版 {0} 与默认的源发行版 {1} 冲突
2428 
2429 # 0: profile, 1: target
2430 compiler.warn.profile.target.conflict=配置文件{0}对于目标发行版 {1} 无效
2431 
2432 # 0: string
2433 compiler.err.file.not.directory=不是目录:{0}
2434 
2435 # 0: object
2436 compiler.err.file.not.file=不是文件:{0}
2437 
2438 compiler.err.two.class.loaders.1=javac 在多个类加载器之间拆分: 请检查配置
2439 
2440 # 0: url, 1: url
2441 compiler.err.two.class.loaders.2=javac 在多个类加载器之间拆分:\n一个类来自文件: {0}\n而 javac 来自 {1}
2442 
2443 # 0: string, 1: string
2444 compiler.err.bad.value.for.option={0} 选项的值错误: ''{1}''
2445 
2446 # 0: string
2447 compiler.err.no.value.for.option={0} 选项没有值
2448 
2449 # 0: string
2450 compiler.err.repeated.value.for.patch.module=为模块 {0} 多次指定了 --patch-module
2451 
2452 # 0: string
2453 compiler.err.repeated.value.for.module.source.path=为模块 {0} 多次指定了 --module-source-path
2454 
2455 compiler.err.multiple.values.for.module.source.path=使用模式参数多次指定了 --module-source-path
2456 
2457 # 0: string
2458 compiler.err.unmatched.quote=环境变量 {0} 中的引号不成对
2459 
2460 # 0: option name
2461 compiler.err.release.bootclasspath.conflict=选项 {0} 不能与 --release 一起使用
2462 
2463 # 0: string
2464 compiler.err.unsupported.release.version=不支持发行版本 {0}
2465 
2466 # 0: string
2467 compiler.err.file.not.found=找不到文件: {0}
2468 
2469 # 0: string, 1: source
2470 compiler.err.preview.not.latest=源发行版 {0} 与 --enable-preview 一起使用时无效\n(仅发行版 {1} 支持预览语言功能)
2471 
2472 compiler.err.preview.without.source.or.release=--enable-preview 必须与 -source 或 --release 一起使用