--- old/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler_zh_CN.properties 2019-01-01 21:15:12.322112842 -0800 +++ new/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler_zh_CN.properties 2019-01-01 21:15:11.623050082 -0800 @@ -49,6 +49,7 @@ # kind name an informative description of the kind of a declaration; see compiler.misc.kindname.* # target a target version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.jvm.Target # token the name of a non-terminal in source code; see compiler.misc.token.* +# tree tag the name of a non-terminal in source code; see compiler.misc.token.* # type a Java type; e.g. int, X, X # url a URL # object a Java object (unspecified) @@ -158,6 +159,28 @@ compiler.err.break.outside.switch.loop=在 switch 或 loop 外部中断 +compiler.err.break.missing.value=缺少中断值 + +compiler.err.break.outside.switch.expression=break 在闭合的 switch 表达式外部 + +compiler.err.continue.outside.switch.expression=continue 在闭合的 switch 表达式外部 + +compiler.err.return.outside.switch.expression=return 在闭合的 switch 表达式外部 + +compiler.err.rule.completes.normally=switch 规则完结但没有提供值\n(switch 表达式中的 switch 规则必须提供值或抛出) + +compiler.err.switch.expression.completes.normally=switch 表达式完结但没有提供值\n(switch 表达式必须为所有可能的输入值提供值或抛出) + +# 0: name +compiler.err.break.ambiguous.target=对 ''{0}'' 的引用不明确\n(''{0}'' 同时是标签和表达式) + +# 0: tree tag +compiler.err.break.expr.not.immediate=''{0}'' 中不支持值中断 + +compiler.err.break.complex.value.no.switch.expression=意外值中断 + +compiler.err.switch.expression.empty=switch 表达式中没有任何 case 子句 + # 0: name compiler.err.call.must.be.first.stmt.in.ctor=对{0}的调用必须是构造器中的第一个语句 @@ -583,15 +606,17 @@ compiler.err.native.meth.cant.have.body=本机方法不能带有主体 -# 0: type, 1: type -compiler.err.neither.conditional.subtype=? 的不兼容类型: 两者都不是对方的子类型\n第二个操作数: {0}\n第三个操作数: {1} - # 0: message segment compiler.misc.incompatible.type.in.conditional=条件表达式中的类型错误\n{0} compiler.misc.conditional.target.cant.be.void=条件表达式的目标类型不能为空 +compiler.misc.switch.expression.target.cant.be.void=switch 表达式的目标类型不能为空 + +# 0: message segment +compiler.misc.incompatible.type.in.switch.expression=switch 表达式中的类型错误\n{0} + # 0: message segment compiler.misc.incompatible.ret.type.in.lambda=lambda 表达式中的返回类型错误\n{0} @@ -817,8 +842,6 @@ compiler.err.throws.not.allowed.in.intf.annotation=@interface 成员中不允许使用 throws 子句 -compiler.err.try.without.catch.or.finally=有 ''try'', 但是没有 ''catch'' 或 ''finally'' - compiler.err.try.without.catch.finally.or.resource.decls=''try'' 不带有 ''catch'', ''finally'' 或资源声明 # 0: symbol @@ -865,6 +888,8 @@ compiler.err.unclosed.str.lit=未结束的字符串文字 +compiler.err.unicode.backtick=尝试将 \\u0060 用作原始字符串文字分隔符 + # 0: string compiler.err.unsupported.encoding=不支持的编码: {0} @@ -922,6 +947,8 @@ compiler.err.unreachable.stmt=无法访问的语句 +compiler.err.not.exhaustive=switch 表达式不包含所有可能的输入值 + compiler.err.initializer.must.be.able.to.complete.normally=初始化程序必须能够正常完成 compiler.err.initializer.not.allowed=接口中不允许有初始化程序 @@ -1240,9 +1267,6 @@ # 0: type, 1: type compiler.warn.inexact.non-varargs.call=最后一个参数使用了不准确的变量类型的 varargs 方法的非 varargs 调用; \n对于 varargs 调用, 应使用 {0}\n对于非 varargs 调用, 应使用 {1}, 这样也可以抑制此警告 -# 0: target, 1: target -compiler.err.bad.target.sigpoly.call=-target {0} 中不支持多态签名调用\n(请使用 -target {1} 或更高版本以启用多态签名调用) - # 0: list of type compiler.warn.unreachable.catch=catch 子句无法访问\n已捕获到抛出的类型{0} @@ -1852,6 +1876,17 @@ compiler.misc.kindname.instance.init=实例初始化程序 +# the following are names of tree kinds: +compiler.misc.tree.tag.forloop=for + +compiler.misc.tree.tag.foreachloop=for + +compiler.misc.tree.tag.whileloop=while + +compiler.misc.tree.tag.doloop=do + +compiler.misc.tree.tag.switch=switch + ##### compiler.misc.no.args=没有参数 @@ -1958,12 +1993,6 @@ compiler.misc.feature.diamond.and.anon.class=''<>'' 具有匿名的内部类 -compiler.misc.feature.binary.lit=二进制文字 - -compiler.misc.feature.underscore.lit=文字中的下划线 - -compiler.misc.feature.try.with.resources=try-with-resources - compiler.misc.feature.var.in.try.with.resources=try-with-resources 中的变量 compiler.misc.feature.type.annotations=类型注释 @@ -1974,10 +2003,6 @@ compiler.misc.feature.diamond=diamond 运算符 -compiler.misc.feature.multicatch=multi-catch 语句 - -compiler.misc.feature.string.switch=switch 中的字符串 - compiler.misc.feature.lambda=lambda 表达式 compiler.misc.feature.method.references=方法引用 @@ -1992,6 +2017,16 @@ compiler.misc.feature.private.intf.methods=私有接口方法 +compiler.misc.feature.multiple.case.labels=多个 case 标签 + +compiler.misc.feature.switch.rules=switch 规则 + +compiler.misc.feature.switch.expressions=switch 表达式 + +compiler.misc.feature.raw.string.literals=原始字符串文字 + +compiler.misc.feature.var.syntax.in.implicit.lambda=隐式 lambda 中的 var 语法 + compiler.warn.underscore.as.identifier=从发行版 9 开始, ''_'' 为关键字, 不能用作标识符 compiler.err.underscore.as.identifier=从发行版 9 开始, ''_'' 为关键字, 不能用作标识符 @@ -2339,6 +2374,11 @@ # 0: string, 1: string compiler.err.illegal.argument.for.option={0} 的参数非法: {1} +compiler.err.switch.null.not.allowed=case 中不允许使用空标签 + +compiler.err.switch.case.unexpected.statement=case 中存在意外语句,应为表达式、块或抛出语句 + +compiler.err.switch.mixing.case.types=在 switch 中使用了不同 case 类型 ############################################ # messages previouly at javac.properties @@ -2407,7 +2447,12 @@ compiler.err.no.value.for.option={0} 选项没有值 # 0: string -compiler.err.repeated.value.for.patch.module=为 {0} 多次指定了 --patch-module +compiler.err.repeated.value.for.patch.module=为模块 {0} 多次指定了 --patch-module + +# 0: string +compiler.err.repeated.value.for.module.source.path=为模块 {0} 多次指定了 --module-source-path + +compiler.err.multiple.values.for.module.source.path=使用模式参数多次指定了 --module-source-path # 0: string compiler.err.unmatched.quote=环境变量 {0} 中的引号不成对