< prev index next >

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

Print this page

        

@@ -1,7 +1,7 @@
 #
-# Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License version 2 only, as
 # published by the Free Software Foundation.  Oracle designates this

@@ -403,10 +403,13 @@
 
 # 0: symbol
 compiler.err.try.resource.may.not.be.assigned=可能未分配可自动关闭的资源{0}
 
 # 0: symbol
+compiler.err.pattern.binding.may.not.be.assigned=不能分配模式绑定 {0}
+
+# 0: symbol
 compiler.err.multicatch.parameter.may.not.be.assigned=可能未分配 multi-catch 参数{0}
 
 # 0: type, 1: type
 compiler.err.multicatch.types.must.be.disjoint=multi-catch 语句中的替代无法通过子类化关联\n替代{0}是替代{1}的子类
 

@@ -679,11 +682,11 @@
 compiler.misc.not.def.access.does.not.read.from.unnamed=程序包 {0} 已在模块 {1} 中声明, 但该模块不在模块图中
 
 # {0} - package in which the invisible class is declared
 # {1} - current module
 # 0: symbol, 1: symbol
-compiler.misc.not.def.access.does.not.read.unnamed=程序包 {0} 已在未命名模块中声明, 但模块 {0} 未读取它
+compiler.misc.not.def.access.does.not.read.unnamed=程序包 {0} 已在未命名模块中声明,但模块 {1} 未读取它
 
 # {0} - package in which the invisible class is declared
 # {1} - module in which {0} is declared
 # 0: symbol, 1: symbol
 compiler.misc.not.def.access.not.exported=程序包 {0} 已在模块 {1} 中声明, 但该模块未导出它

@@ -1006,10 +1009,13 @@
 compiler.err.varargs.invalid.trustme.anno={0} 注释无效。{1}
 
 # 0: type
 compiler.misc.varargs.trustme.on.reifiable.varargs=Varargs 元素类型{0}可具体化。
 
+# 0: type, 1: type
+compiler.err.instanceof.reifiable.not.safe={0} 无法安全地转换为 {1}
+
 # 0: symbol
 compiler.misc.varargs.trustme.on.non.varargs.meth=方法 {0} 不是 varargs 方法。
 
 # 0: symbol
 compiler.misc.varargs.trustme.on.virtual.varargs=实例方法 {0} 既不是最终的, 也不是私有的。

@@ -1276,10 +1282,16 @@
 
 # 0: symbol, 1: symbol
 compiler.warn.has.been.deprecated.for.removal={1} 中的 {0} 已过时, 且标记为待删除
 
 # 0: symbol
+compiler.warn.is.preview={0} 是某预览功能中的一个 API
+
+# 0: symbol
+compiler.err.is.preview={0} 是某预览功能中的一个 API
+
+# 0: symbol
 compiler.warn.has.been.deprecated.module=模块 {0} 已过时
 
 # 0: symbol
 compiler.warn.has.been.deprecated.for.removal.module=模块 {0} 已过时, 且标记为待删除
 

@@ -1340,10 +1352,13 @@
 
 # 0: string
 compiler.warn.source.no.bootclasspath=未与 -source {0} 一起设置引导类路径
 
 # 0: string
+compiler.warn.source.no.system.modules.path=未与 -source {0} 一起设置系统模块路径
+
+# 0: string
 compiler.warn.option.obsolete.source=源值{0}已过时, 将在未来所有发行版中删除
 
 # 0: target
 compiler.warn.option.obsolete.target=目标值{0}已过时, 将在未来所有发行版中删除
 

@@ -1550,12 +1565,19 @@
 compiler.err.expected2=需要{0}或{1}
 
 # 0: token, 1: token, 2: token
 compiler.err.expected3=需要{0}, {1}或{2}
 
+# 0: token, 1: token, 2: token, 3: string
+compiler.err.expected4=需要 {0}、{1}、{2} 或 {3}
+
 compiler.err.premature.eof=进行语法分析时已到达文件结尾
 
+compiler.err.enum.constant.expected=此处需要枚举常量
+
+compiler.err.enum.constant.not.expected=此处不需要枚举常量
+
 ## The following are related in form, but do not easily fit the above paradigm.
 compiler.err.expected.module=需要 ''module''
 
 compiler.err.expected.module.or.open=需要 ''module'' 或 ''open''
 

@@ -1632,10 +1654,13 @@
 compiler.misc.bad.constant.range={1} 的常量值 ''{0}'' 超出了 {2} 的预期范围
 
 # 0: string (constant value), 1: symbol (constant field), 2: string (expected class)
 compiler.misc.bad.constant.value={1} 的常量值 ''{0}'' 错误, 预期为 {2}
 
+# 0: type (field type)
+compiler.misc.bad.constant.value.type=''{0}'' 类型的变量不能具有常量值,但是为其指定了一个常量值
+
 # 0: string (classfile major version), 1: string (classfile minor version)
 compiler.misc.invalid.default.interface=在 {0}.{1} 版类文件中找到默认方法
 
 # 0: string (classfile major version), 1: string (classfile minor version)
 compiler.misc.invalid.static.interface=在 {0}.{1} 版类文件中找到静态方法

@@ -1917,10 +1942,14 @@
 
 compiler.misc.kindname.static.init=静态初始化程序
 
 compiler.misc.kindname.instance.init=实例初始化程序
 
+compiler.misc.kindname.record.component=记录组件
+
+compiler.misc.kindname.record=记录
+
 #####
 
 compiler.misc.no.args=没有参数
 
 # 0: message segment

@@ -2057,10 +2086,16 @@
 
 compiler.misc.feature.switch.expressions=switch 表达式
 
 compiler.misc.feature.var.syntax.in.implicit.lambda=隐式 lambda 中的 var 语法
 
+compiler.misc.feature.pattern.matching.instanceof=instanceof 中的模式匹配
+
+compiler.misc.feature.reifiable.types.instanceof=instanceof 中的可具体化类型
+
+compiler.misc.feature.records=记录
+
 compiler.warn.underscore.as.identifier=从发行版 9 开始, ''_'' 为关键字, 不能用作标识符
 
 compiler.err.underscore.as.identifier=从发行版 9 开始, ''_'' 为关键字, 不能用作标识符
 
 compiler.err.underscore.as.identifier.in.lambda=''_'' 用作标识符\n(对于 lambda 参数, 禁止将 ''_'' 用作标识符)

@@ -2404,18 +2439,79 @@
 # errors related to options
 
 # 0: string, 1: string
 compiler.err.illegal.argument.for.option={0} 的参数非法: {1}
 
+compiler.err.match.binding.exists=尝试重新定义现有的匹配绑定,这是非法的
+
 compiler.err.switch.null.not.allowed=case 中不允许使用空标签
 
 compiler.err.switch.case.unexpected.statement=case 中存在意外语句,应为表达式、块或抛出语句
 
 compiler.err.switch.mixing.case.types=在 switch 中使用了不同 case 类型
 
+###
+# errors related to records
+
+# record components
+compiler.err.record.cant.declare.field.modifiers=记录组件不能具有限定符
+
+# 0: symbol
+compiler.err.illegal.record.component.name=记录组件名称 {0} 非法
+
+# accessor methods
+# 0: symbol, 1: fragment
+compiler.err.invalid.accessor.method.in.record=记录 {0} 中的存取方法无效\n({1})
+
+compiler.misc.method.must.be.public=存取方法必须是公共的
+
+# 0: symbol, 1: symbol
+compiler.misc.accessor.return.type.doesnt.match=存取方法 {0} 的返回类型必须与记录组件 {1} 的类型相匹配
+
+compiler.misc.accessor.method.cant.throw.exception=对于存取方法不允许使用 throws 子句
+
+compiler.misc.accessor.method.must.not.be.generic=存取方法不能为泛型方法
+
+compiler.misc.accessor.method.must.not.be.static=存取方法不能为静态方法
+
+# canonical constructors
+# 0: fragment, 1: symbol, 2: fragment
+compiler.err.invalid.canonical.constructor.in.record=记录 {1} 中的 {0} 构造器无效\n({2})
+
+compiler.misc.canonical=规范
+
+compiler.misc.compact=精简
+
+compiler.misc.canonical.constructor.must.be.public=规范构造器必须是公共的
+
+compiler.misc.throws.clause.not.allowed.for.canonical.constructor=对于规范构造器不允许使用 throws 子句
+
+compiler.misc.canonical.with.name.mismatch=规范构造器中的参数名称无效
+
+compiler.misc.canonical.cant.have.return.statement=精简构造器不得包含返回语句
+
+compiler.misc.canonical.must.not.declare.type.variables=规范构造器不得声明类型变量
+
+compiler.misc.type.must.be.identical.to.corresponding.record.component.type=类型必须与相应记录组件的类型相匹配
+compiler.misc.canonical.must.not.contain.explicit.constructor.invocation=规范构造器不得包含显式构造器调用
+
+# other
+compiler.err.record.cannot.declare.instance.fields=字段声明必须为静态\n(考虑将字段替换为记录组件)
+
+# 0: symbol
+compiler.err.invalid.supertype.record=类无法直接扩展 {0}
+
+compiler.err.first.statement.must.be.call.to.another.constructor=构造器不是规范的,因此它的第一个语句必须调用另一个构造器
+
+compiler.err.instance.initializer.not.allowed.in.records=记录中不允许使用实例初始化程序
+
+compiler.err.record.declaration.not.allowed.in.inner.classes=内部类中不允许使用记录声明
+
+compiler.err.record.header.expected=需要记录标头
+
 ############################################
-# messages previouly at javac.properties
+# messages previously at javac.properties
 
 compiler.err.empty.A.argument=-A 需要一个参数; 使用 ''-Akey'' 或 ''-Akey=value''
 
 # 0: string
 compiler.err.invalid.A.key=注释处理程序选项 ''{0}'' 中的关键字不是以点分隔的标识符序列
< prev index next >