< prev index next >

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

Print this page

        

@@ -541,10 +541,14 @@
 # 0: symbol
 compiler.err.try.resource.may.not.be.assigned=\
     auto-closeable resource {0} may not be assigned
 
 # 0: symbol
+compiler.err.pattern.binding.may.not.be.assigned=\
+    pattern binding {0} may not be assigned
+
+# 0: symbol
 compiler.err.multicatch.parameter.may.not.be.assigned=\
     multi-catch parameter {0} may not be assigned
 
 # 0: type, 1: type
 compiler.err.multicatch.types.must.be.disjoint=\

@@ -2150,10 +2154,14 @@
 
 # 0: token, 1: token, 2: token
 compiler.err.expected3=\
     {0}, {1}, or {2} expected
 
+# 0: token, 1: token, 2: token, 3: token
+compiler.err.expected4=\
+    {0}, {1}, {2}, or {3} expected
+
 compiler.err.premature.eof=\
     reached end of file while parsing
 
 ## The following are related in form, but do not easily fit the above paradigm.
 compiler.err.expected.module=\

@@ -2882,10 +2890,13 @@
     switch expressions
 
 compiler.misc.feature.var.syntax.in.implicit.lambda=\
     var syntax in implicit lambdas
 
+compiler.misc.feature.sealed.types=\
+    sealed types
+
 compiler.warn.underscore.as.identifier=\
     as of release 9, ''_'' is a keyword, and may not be used as an identifier
 
 compiler.err.underscore.as.identifier=\
     as of release 9, ''_'' is a keyword, and may not be used as an identifier

@@ -3372,19 +3383,104 @@
 
 # 0: string, 1: string
 compiler.err.illegal.argument.for.option=\
     illegal argument for {0}: {1}
 
+compiler.err.match.binding.exists.with.different.type=\
+    illegal attempt to redefine an existing match binding with different type
+
+compiler.err.match.binding.exists=\
+    illegal attempt to redefine an existing match binding
+
 compiler.err.switch.null.not.allowed=\
     null label in case is not allowed
 
 compiler.err.switch.case.unexpected.statement=\
     unexpected statement in case, expected is an expression, a block or a throw statement
 
 compiler.err.switch.mixing.case.types=\
     different case kinds used in the switch
 
+###
+# errors related to sealed classes
+
+compiler.err.permits.in.no.sealed.class=\
+    permits clause can only appear in a sealed class
+
+# 0: symbol
+compiler.err.cant.inherit.from.sealed=\
+    cannot inherit from sealed class: {0}
+
+compiler.err.non.sealed.with.no.sealed.supertype=\
+    non-sealed modifier applied to a class with no sealed supertype
+
+###
+# errors related to records
+
+compiler.err.record.cant.be.abstract=\
+    records cannot be abstract
+
+compiler.err.record.cant.declare.duplicate.fields=\
+    records cannot declare fields with the same name
+
+compiler.err.record.cant.declare.field.modifiers=\
+    records cannot declare field modifiers
+
+compiler.err.record.can.only.declare.methods.as.members=\
+    records can only declare methods as members
+
+# 0: fragment
+compiler.err.cant.extend.record=\
+    Illegal ''extends'' clause for record\n\
+    {0}
+
+compiler.misc.bad.record.super=\
+    A record must extend class AbstractRecord or an ''abstract'' record
+
+# 0: type, 1: name, 2: type, 3: name
+compiler.misc.super.field.mismatch=\
+    Superclass field declaration mismatch\n\
+    expected: {0} {1}\n\
+    found: {2} {3}
+
+compiler.misc.bad.super.fields=\
+    A record cannot have both an explicit constructor, and an implicit superclass header.
+
+compiler.err.record.fields.must.be.in.header=\
+    instance fields in a record must be declared in the header
+
+compiler.err.local.record=\
+    records must not be local
+
+compiler.err.nested.records.must.be.static=\
+    nested records must always be static
+
+# 0: name
+compiler.err.duplicate.argument.to.super=\
+    duplicate argument {0}, arguments passed to the super of a record must be unique
+
+# 0: name
+compiler.err.record.not.allowed=\
+    ''{0}'' not allowed here\n\
+    as of release 14, ''{0}'' is a restricted type name and cannot be used for type declarations
+
+# 0: name
+compiler.err.method.must.be.public=\
+    method: {0}(), must be public
+
+compiler.err.canonical.with.name.mismatch=\
+    constructor with same signature as canonical does not match by parameter names
+
+compiler.err.constructor.with.same.erasure.as.canonical=\
+    constructor with same erasure as canonical constructor
+
+# 0: type, 1: type
+compiler.err.accessor.return.type.doesnt.match=\
+    type returned by the accessor is not the same as the type of the corresponding record component\n\
+    required: {0}\n\
+    found:    {1}\n\
+
 ############################################
 # messages previouly at javac.properties
 
 compiler.err.empty.A.argument=\
     -A requires an argument; use ''-Akey'' or ''-Akey=value''
< prev index next >