< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler_zh_CN.properties

Print this page

        

@@ -47,10 +47,11 @@
 # symbol            the name of a declared type
 # symbol kind       the kind of a symbol (i.e. method, variable)
 # 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<T>
 # url               a URL
 # object            a Java object (unspecified)
 # unused            the value is not used in this message
 #

@@ -156,10 +157,32 @@
 # 0: string (statement type)
 compiler.err.bad.initializer={0}的初始化程序错误
 
 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}的调用必须是构造器中的第一个语句
 
 # 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
 compiler.err.cant.apply.symbol=无法将{4} {5}中的{0} {1}应用到给定类型;\n需要: {2}\n找到: {3}\n原因: {6}

@@ -581,19 +604,21 @@
 
 compiler.err.name.reserved.for.internal.use={0}为内部使用保留
 
 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}
 
 compiler.misc.stat.expr.expected=lambda 主体与 void 函数接口不兼容\n(请考虑使用块 lambda 主体, 或者改为使用语句表达式)
 

@@ -815,12 +840,10 @@
 # 0: symbol, 1: type
 compiler.misc.illegal.signature=类型 {1} 的签名属性非法
 
 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
 compiler.err.type.doesnt.take.params=类型{0}不带有参数
 

@@ -863,10 +886,12 @@
 
 compiler.err.unclosed.comment=未结束的注释
 
 compiler.err.unclosed.str.lit=未结束的字符串文字
 
+compiler.err.unicode.backtick=尝试将 \\u0060 用作原始字符串文字分隔符
+
 # 0: string
 compiler.err.unsupported.encoding=不支持的编码: {0}
 
 compiler.err.io.exception=读取源文件时出错: {0}
 

@@ -920,10 +945,12 @@
 # 0: message segment or type, 1: message segment
 compiler.misc.cant.apply.diamond.1=无法推断{0}的类型参数\n原因: {1}
 
 compiler.err.unreachable.stmt=无法访问的语句
 
+compiler.err.not.exhaustive=switch 表达式不包含所有可能的输入值
+
 compiler.err.initializer.must.be.able.to.complete.normally=初始化程序必须能够正常完成
 
 compiler.err.initializer.not.allowed=接口中不允许有初始化程序
 
 # 0: type

@@ -1238,13 +1265,10 @@
 compiler.warn.improper.SVUID=必须在类{0}中将 serialVersionUID 声明为 static final
 
 # 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}
 
 # 0: list of type
 compiler.warn.unreachable.catch.1=catch 子句无法访问\n已捕获到抛出的类型{0}

@@ -1850,10 +1874,21 @@
 
 compiler.misc.kindname.static.init=静态初始化程序
 
 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=没有参数
 
 # 0: message segment

@@ -1956,30 +1991,20 @@
 
 compiler.misc.feature.modules=模块
 
 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=类型注释
 
 compiler.misc.feature.annotations.after.type.params=在方法类型参数之后的注释
 
 compiler.misc.feature.repeatable.annotations=重复的注释
 
 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=方法引用
 
 compiler.misc.feature.default.methods=默认方法

@@ -1990,10 +2015,20 @@
 
 compiler.misc.feature.static.intf.method.invoke=静态接口方法调用
 
 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 开始, ''_'' 为关键字, 不能用作标识符
 
 compiler.err.underscore.as.identifier.in.lambda=''_'' 用作标识符\n(对于 lambda 参数, 禁止将 ''_'' 用作标识符)

@@ -2337,10 +2372,15 @@
 # errors related to options
 
 # 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
 
 compiler.err.empty.A.argument=-A 需要一个参数; 使用 ''-Akey'' 或 ''-Akey=value''

@@ -2405,11 +2445,16 @@
 
 # 0: string
 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} 中的引号不成对
 
 # 0: option name
< prev index next >