duke@1: # vromero@2370: # Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved. duke@1: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@1: # duke@1: # This code is free software; you can redistribute it and/or modify it duke@1: # under the terms of the GNU General Public License version 2 only, as ohair@554: # published by the Free Software Foundation. Oracle designates this duke@1: # particular file as subject to the "Classpath" exception as provided ohair@554: # by Oracle in the LICENSE file that accompanied this code. duke@1: # duke@1: # This code is distributed in the hope that it will be useful, but WITHOUT duke@1: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@1: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@1: # version 2 for more details (a copy is included in the LICENSE file that duke@1: # accompanied this code). duke@1: # duke@1: # You should have received a copy of the GNU General Public License version duke@1: # 2 along with this work; if not, write to the Free Software Foundation, duke@1: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@1: # ohair@554: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@554: # or visit www.oracle.com if you need additional information or have any ohair@554: # questions. duke@1: # duke@1: jjg@842: # Messages in this file which use "placeholders" for values (e.g. {0}, {1}) jjg@842: # are preceded by a stylized comment describing the type of the corresponding jjg@842: # values. jjg@842: # The types currently in use are jjg@842: # jjg@842: # boolean true or false jjg@842: # file name the name of an input file; e.g. MyFile.java jjg@842: # message segment a sub-message; see compiler.misc.* jjg@842: # modifier a Java modifier; e.g. public, private, protected jjg@842: # name a name, typically a Java identifier jjg@842: # number an integer jjg@842: # option name the name of a command line option jjg@842: # source version a source version number, such as 1.5, 1.6, 1.7 jjg@842: # string a general string jjg@842: # symbol the name of a declared type jjg@842: # symbol kind a description of the kind of a declaration; see compiler.misc.kindname.* jjg@842: # token the name of a non-terminal in source code; see compiler.misc.token.* jjg@842: # type a Java type; e.g. int, X, X jjg@842: # unused the value is not used in this message jjg@842: # jjg@842: # list of X a comma-separated list of items; e.g. list of type jjg@842: # X or Y alternation; e.g. message segment or type jjg@842: # set of X a comma-separated collection of items; e.g. set of modifier jjg@842: # jjg@842: # These may be composed: e.g. list of type or message segment jjg@842: # jjg@842: # These comments are verified by the jtreg test test/tools/javac/diags/MessageInfo, jjg@842: # using info derived from the collected set of examples in test/tools/javac/diags/examples. jjg@842: # MessageInfo can also be run as a standalone utility providing more facilities jjg@842: # for manipulating this file. For more details, see MessageInfo.java. jjg@842: duke@1: ## duke@1: ## errors duke@1: ## duke@1: jjg@842: # 0: symbol duke@1: compiler.err.abstract.cant.be.instantiated=\ duke@1: {0} is abstract; cannot be instantiated jjg@842: duke@1: compiler.err.abstract.meth.cant.have.body=\ duke@1: abstract methods cannot have a body jjg@842: duke@1: compiler.err.already.annotated=\ duke@1: {0} {1} has already been annotated jjg@842: mcimadamore@1085: # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol duke@1: compiler.err.already.defined=\ mcimadamore@1085: {0} {1} is already defined in {2} {3} mcimadamore@1085: mcimadamore@1085: # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol kind, 4: symbol mcimadamore@1085: compiler.err.already.defined.in.clinit=\ mcimadamore@1085: {0} {1} is already defined in {2} of {3} {4} jjg@842: jjg@842: # 0: string duke@1: compiler.err.already.defined.single.import=\ emc@2102: a type with the same simple name is already defined by the single-type-import of {0} jjg@842: jjg@842: # 0: string duke@1: compiler.err.already.defined.static.single.import=\ emc@2102: a type with the same simple name is already defined by the static single-type-import of {0} jjg@842: duke@1: compiler.err.already.defined.this.unit=\ duke@1: {0} is already defined in this compilation unit jjg@842: jjg@842: # 0: type, 1: list of name duke@1: compiler.err.annotation.missing.default.value=\ emc@2102: annotation @{0} is missing a default value for the element ''{1}'' jjg@842: jjg@842: # 0: type, 1: list of name mcimadamore@632: compiler.err.annotation.missing.default.value.1=\ emc@2102: annotation @{0} is missing default values for elements {1} jjg@842: jjg@842: # 0: type duke@1: compiler.err.annotation.not.valid.for.type=\ emc@2102: annotation not valid for an element of type {0} jjg@842: duke@1: compiler.err.annotation.type.not.applicable=\ duke@1: annotation type not applicable to this kind of declaration jjg@842: duke@1: compiler.err.annotation.value.must.be.annotation=\ duke@1: annotation value must be an annotation jjg@842: duke@1: compiler.err.annotation.value.must.be.class.literal=\ duke@1: annotation value must be a class literal jjg@842: duke@1: compiler.err.annotation.value.must.be.name.value=\ duke@1: annotation values must be of the form ''name=value'' jjg@842: duke@1: compiler.err.annotation.value.not.allowable.type=\ duke@1: annotation value not of an allowable type jjg@842: duke@1: compiler.err.anon.class.impl.intf.no.args=\ duke@1: anonymous class implements interface; cannot have arguments jjg@842: duke@1: compiler.err.anon.class.impl.intf.no.typeargs=\ duke@1: anonymous class implements interface; cannot have type arguments jjg@842: duke@1: compiler.err.anon.class.impl.intf.no.qual.for.new=\ duke@1: anonymous class implements interface; cannot have qualifier for new jjg@842: pgovereau@2361: compiler.err.cant.inherit.from.anon=\ pgovereau@2361: cannot inherit from anonymous class pgovereau@2361: jjg@842: # 0: symbol, 1: symbol, 2: symbol duke@1: compiler.err.array.and.varargs=\ duke@1: cannot declare both {0} and {1} in {2} jjg@842: duke@1: compiler.err.array.dimension.missing=\ duke@1: array dimension missing jjg@842: jjg@842: # 0: type duke@1: compiler.err.array.req.but.found=\ duke@1: array required, but {0} found duke@1: duke@1: compiler.err.attribute.value.must.be.constant=\ emc@2102: element value must be a constant expression duke@1: ksrini@1259: # 0: statement type ksrini@1259: compiler.err.bad.initializer=\ ksrini@1259: bad initializer for {0} ksrini@1259: duke@1: compiler.err.break.outside.switch.loop=\ duke@1: break outside switch or loop duke@1: jjg@842: # 0: name duke@1: compiler.err.call.must.be.first.stmt.in.ctor=\ duke@1: call to {0} must be first statement in constructor jjg@842: mcimadamore@1352: # 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 duke@1: compiler.err.cant.apply.symbol=\ mcimadamore@80: {0} {1} in {4} {5} cannot be applied to given types;\n\ mcimadamore@80: required: {2}\n\ mcimadamore@80: found: {3}\n\ mcimadamore@80: reason: {6} jjg@842: jjg@842: # 0: symbol kind, 1: name, 2: list of type mcimadamore@689: compiler.err.cant.apply.symbols=\ mcimadamore@689: no suitable {0} found for {1}({2}) jjg@842: mcimadamore@1352: # 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 mcimadamore@1352: compiler.misc.cant.apply.symbol=\ mcimadamore@1352: {0} {1} in {4} {5} cannot be applied to given types\n\ mcimadamore@1352: required: {2}\n\ mcimadamore@1352: found: {3}\n\ mcimadamore@1352: reason: {6} mcimadamore@1352: mcimadamore@1352: # 0: symbol kind, 1: name, 2: list of type mcimadamore@1352: compiler.misc.cant.apply.symbols=\ mcimadamore@1352: no suitable {0} found for {1}({2}) mcimadamore@1352: mcimadamore@1348: # 0: symbol kind, 1: symbol mcimadamore@1348: compiler.misc.no.abstracts=\ mcimadamore@1348: no abstract method found in {0} {1} mcimadamore@1348: mcimadamore@1348: # 0: symbol kind, 1: symbol mcimadamore@1348: compiler.misc.incompatible.abstracts=\ mcimadamore@1348: multiple non-overriding abstract methods found in {0} {1} mcimadamore@1348: mcimadamore@1497: compiler.err.bad.functional.intf.anno=\ mcimadamore@1497: Unexpected @FunctionalInterface annotation mcimadamore@1497: mcimadamore@1497: # 0: message segment mcimadamore@1497: compiler.err.bad.functional.intf.anno.1=\ mcimadamore@1497: Unexpected @FunctionalInterface annotation\n\ mcimadamore@1497: {0} mcimadamore@1497: mcimadamore@1497: # 0: symbol mcimadamore@1348: compiler.misc.not.a.functional.intf=\ mcimadamore@1497: {0} is not a functional interface mcimadamore@1497: mcimadamore@1497: # 0: symbol, 1: message segment mcimadamore@1348: compiler.misc.not.a.functional.intf.1=\ mcimadamore@1497: {0} is not a functional interface\n\ mcimadamore@1497: {1} mcimadamore@1348: mcimadamore@1348: # 0: symbol, 1: symbol kind, 2: symbol mcimadamore@1434: compiler.misc.invalid.generic.lambda.target=\ mcimadamore@1434: invalid functional descriptor for lambda expression\n\ mcimadamore@1434: method {0} in {1} {2} is generic mcimadamore@1348: mcimadamore@1348: # 0: symbol kind, 1: symbol mcimadamore@1348: compiler.misc.incompatible.descs.in.functional.intf=\ mcimadamore@1348: incompatible function descriptors found in {0} {1} mcimadamore@1348: mcimadamore@1348: # 0: name, 1: list of type, 2: type, 3: list of type mcimadamore@1348: compiler.misc.descriptor=\ mcimadamore@1348: descriptor: {2} {0}({1}) mcimadamore@1348: mcimadamore@1348: # 0: name, 1: list of type, 2: type, 3: list of type mcimadamore@1348: compiler.misc.descriptor.throws=\ mcimadamore@1348: descriptor: {2} {0}({1}) throws {3} mcimadamore@1348: mcimadamore@1348: # 0: type mcimadamore@1348: compiler.misc.no.suitable.functional.intf.inst=\ mcimadamore@1348: cannot infer functional interface descriptor for {0} mcimadamore@1348: mcimadamore@1678: # 0: message segment mcimadamore@1678: compiler.misc.bad.intersection.target.for.functional.expr=\ mcimadamore@1678: bad intersection type target for lambda or method reference\n\ mcimadamore@1678: {0} mcimadamore@1678: jjg@1755: # 0: symbol or type mcimadamore@1678: compiler.misc.not.an.intf.component=\ mcimadamore@1678: component type {0} is not an interface mcimadamore@1436: mcimadamore@1352: # 0: symbol kind, 1: message segment mcimadamore@1352: compiler.err.invalid.mref=\ mcimadamore@1759: invalid {0} reference\n\ mcimadamore@1759: {1} mcimadamore@1352: mcimadamore@1352: # 0: symbol kind, 1: message segment mcimadamore@1352: compiler.misc.invalid.mref=\ mcimadamore@1759: invalid {0} reference\n\ mcimadamore@1759: {1} mcimadamore@1352: mcimadamore@1435: compiler.misc.static.mref.with.targs=\ mcimadamore@1435: parameterized qualifier on static method reference mcimadamore@1435: mcimadamore@1435: compiler.misc.static.bound.mref=\ mcimadamore@1435: static bound method reference mcimadamore@1435: jjg@842: # 0: symbol duke@1: compiler.err.cant.assign.val.to.final.var=\ duke@1: cannot assign a value to final variable {0} jjg@842: mcimadamore@1297: # 0: symbol, 1: message segment mcimadamore@1297: compiler.err.cant.ref.non.effectively.final.var=\ mcimadamore@1297: local variables referenced from {1} must be final or effectively final mcimadamore@1297: mcimadamore@1297: mcimadamore@1348: compiler.misc.lambda=\ mcimadamore@1348: a lambda expression mcimadamore@1348: mcimadamore@1297: compiler.misc.inner.cls=\ mcimadamore@1297: an inner class mcimadamore@1297: jjg@842: # 0: type duke@1: compiler.err.cant.deref=\ duke@1: {0} cannot be dereferenced jjg@842: duke@1: compiler.err.cant.extend.intf.annotation=\ duke@1: ''extends'' not allowed for @interfaces jjg@842: jjg@842: # 0: symbol duke@1: compiler.err.cant.inherit.from.final=\ duke@1: cannot inherit from final {0} jjg@842: jjg@842: # 0: symbol duke@1: compiler.err.cant.ref.before.ctor.called=\ duke@1: cannot reference {0} before supertype constructor has been called jjg@842: duke@1: compiler.err.cant.select.static.class.from.param.type=\ duke@1: cannot select a static class from a parameterized type jjg@842: jjg@842: # 0: symbol, 1: string, 2: string duke@1: compiler.err.cant.inherit.diff.arg=\ duke@1: {0} cannot be inherited with different arguments: <{1}> and <{2}> jjg@842: duke@1: compiler.err.catch.without.try=\ duke@1: ''catch'' without ''try'' jjg@842: jjg@842: # 0: symbol kind, 1: symbol duke@1: compiler.err.clash.with.pkg.of.same.name=\ mcimadamore@829: {0} {1} clashes with package of same name jjg@842: ksrini@1249: compiler.err.class.not.allowed=\ ksrini@1249: class, interface or enum declaration not allowed here ksrini@1249: duke@1: compiler.err.const.expr.req=\ duke@1: constant expression required jjg@842: duke@1: compiler.err.cont.outside.loop=\ duke@1: continue outside of loop jjg@842: jjg@842: # 0: symbol duke@1: compiler.err.cyclic.inheritance=\ duke@1: cyclic inheritance involving {0} jjg@842: emc@2102: # 0: symbol duke@1: compiler.err.cyclic.annotation.element=\ emc@2102: type of element {0} is cyclic jjg@842: jjg@842: # 0: unused duke@1: compiler.err.call.to.super.not.allowed.in.enum.ctor=\ duke@1: call to super not allowed in enum constructor jjg@842: jjg@842: # 0: type duke@1: compiler.err.no.superclass=\ emc@2102: {0} has no superclass. duke@1: jjg@842: # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused duke@1: compiler.err.concrete.inheritance.conflict=\ duke@1: methods {0} from {1} and {2} from {3} are inherited with the same signature duke@1: duke@1: compiler.err.default.allowed.in.intf.annotation.member=\ emc@2102: default value only allowed in an annotation type declaration jjg@842: jjg@842: # 0: symbol duke@1: compiler.err.doesnt.exist=\ duke@1: package {0} does not exist jjg@842: jfranck@1445: # 0: type jfranck@1445: compiler.err.duplicate.annotation.invalid.repeated=\ emc@2102: annotation {0} is not a valid repeatable annotation jfranck@1445: jjg@842: # 0: name, 1: type duke@1: compiler.err.duplicate.annotation.member.value=\ emc@2102: duplicate element ''{0}'' in annotation @{1}. emc@2102: emc@2102: # 0: name, 1: unused jfranck@1313: compiler.err.duplicate.annotation.missing.container=\ emc@2102: {0} is not a repeatable annotation type emc@2102: emc@2102: # 0: type, 1: unused jjg@1492: compiler.err.invalid.repeatable.annotation=\ emc@2102: duplicate annotation: {0} is annotated with an invalid @Repeatable annotation jjg@1755: jjg@1755: # 0: symbol or type jjg@1492: compiler.err.invalid.repeatable.annotation.no.value=\ emc@2102: {0} is not a valid @Repeatable, no value element method declared jfranck@1313: jfranck@1313: # 0: type, 1: number jjg@1492: compiler.err.invalid.repeatable.annotation.multiple.values=\ emc@2102: {0} is not a valid @Repeatable, {1} element methods named ''value'' declared jfranck@1313: jfranck@1313: # 0: type jjg@1492: compiler.err.invalid.repeatable.annotation.invalid.value=\ emc@2102: {0} is not a valid @Repeatable: invalid value element emc@2102: emc@2102: # 0: symbol type, 1: unused, 2: type jjg@1492: compiler.err.invalid.repeatable.annotation.value.return=\ emc@2102: containing annotation type ({0}) must declare an element named ''value'' of type {2} jjg@1755: jjg@1755: # 0: symbol or type, 1: symbol jjg@1492: compiler.err.invalid.repeatable.annotation.elem.nondefault=\ emc@2102: containing annotation type ({0}) does not have a default value for element {1} emc@2102: emc@2102: # 0: symbol, 1: unused, 2: symbol, 3: unused jjg@1492: compiler.err.invalid.repeatable.annotation.retention=\ emc@2102: retention of containing annotation type ({0}) is shorter than the retention of repeatable annotation type ({2}) jfranck@1313: jfranck@1313: # 0: symbol, 1: symbol jjg@1492: compiler.err.invalid.repeatable.annotation.not.documented=\ emc@2102: repeatable annotation type ({1}) is @Documented while containing annotation type ({0}) is not jfranck@1313: jfranck@1313: # 0: symbol, 1: symbol jjg@1492: compiler.err.invalid.repeatable.annotation.not.inherited=\ emc@2102: repeatable annotation type ({1}) is @Inherited while containing annotation type ({0}) is not jfranck@1313: jfranck@1313: # 0: symbol, 1: symbol jjg@1492: compiler.err.invalid.repeatable.annotation.incompatible.target=\ emc@2102: containing annotation type ({0}) is applicable to more targets than repeatable annotation type ({1}) jfranck@1313: jfranck@1313: # 0: symbol jjg@1492: compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\ jfranck@1313: container {0} must not be present at the same time as the element it contains jfranck@1313: jjg@842: # 0: name duke@1: compiler.err.duplicate.class=\ duke@1: duplicate class: {0} jjg@842: duke@1: compiler.err.duplicate.case.label=\ duke@1: duplicate case label jjg@842: duke@1: compiler.err.duplicate.default.label=\ duke@1: duplicate default label duke@1: duke@1: compiler.err.else.without.if=\ duke@1: ''else'' without ''if'' jjg@842: duke@1: compiler.err.empty.char.lit=\ duke@1: empty character literal jjg@842: jjg@842: # 0: symbol duke@1: compiler.err.encl.class.required=\ duke@1: an enclosing instance that contains {0} is required jjg@842: duke@1: compiler.err.enum.annotation.must.be.enum.constant=\ duke@1: an enum annotation value must be an enum constant duke@1: duke@1: compiler.err.enum.cant.be.instantiated=\ duke@1: enum types may not be instantiated jjg@842: duke@1: compiler.err.enum.label.must.be.unqualified.enum=\ duke@1: an enum switch case label must be the unqualified name of an enumeration constant jjg@842: duke@1: compiler.err.enum.no.subclassing=\ duke@1: classes cannot directly extend java.lang.Enum jjg@842: duke@1: compiler.err.enum.types.not.extensible=\ duke@1: enum types are not extensible jjg@842: duke@1: compiler.err.enum.no.finalize=\ duke@1: enums cannot have finalize methods jjg@842: jjg@842: # 0: file name, 1: string duke@1: compiler.err.error.reading.file=\ duke@1: error reading {0}; {1} jjg@842: jjg@842: # 0: type duke@1: compiler.err.except.already.caught=\ duke@1: exception {0} has already been caught jjg@842: jjg@842: # 0: type duke@1: compiler.err.except.never.thrown.in.try=\ duke@1: exception {0} is never thrown in body of corresponding try statement duke@1: jjg@842: # 0: symbol duke@1: compiler.err.final.parameter.may.not.be.assigned=\ duke@1: final parameter {0} may not be assigned jjg@842: jjg@842: # 0: symbol mcimadamore@743: compiler.err.try.resource.may.not.be.assigned=\ mcimadamore@743: auto-closeable resource {0} may not be assigned jjg@842: jjg@842: # 0: symbol mcimadamore@550: compiler.err.multicatch.parameter.may.not.be.assigned=\ mcimadamore@550: multi-catch parameter {0} may not be assigned jjg@842: mcimadamore@949: # 0: type, 1: type mcimadamore@949: compiler.err.multicatch.types.must.be.disjoint=\ mcimadamore@949: Alternatives in a multi-catch statement cannot be related by subclassing\n\ mcimadamore@949: Alternative {0} is a subclass of alternative {1} mcimadamore@949: duke@1: compiler.err.finally.without.try=\ duke@1: ''finally'' without ''try'' jjg@842: jjg@842: # 0: type, 1: message segment duke@1: compiler.err.foreach.not.applicable.to.type=\ mcimadamore@829: for-each not applicable to expression type\n\ mcimadamore@829: required: {1}\n\ mcimadamore@829: found: {0} jjg@842: duke@1: compiler.err.fp.number.too.large=\ duke@1: floating point number too large jjg@842: duke@1: compiler.err.fp.number.too.small=\ duke@1: floating point number too small duke@1: duke@1: compiler.err.generic.array.creation=\ duke@1: generic array creation jjg@842: duke@1: compiler.err.generic.throwable=\ duke@1: a generic class may not extend java.lang.Throwable duke@1: jjg@842: # 0: symbol duke@1: compiler.err.icls.cant.have.static.decl=\ mcimadamore@830: Illegal static declaration in inner class {0}\n\ mcimadamore@830: modifier \''static\'' is only allowed in constant variable declarations jjg@842: jjg@842: # 0: string duke@1: compiler.err.illegal.char=\ vromero@1385: illegal character: ''{0}'' jjg@842: duke@1: compiler.err.illegal.char.for.encoding=\ duke@1: unmappable character for encoding {0} jjg@842: jjg@842: # 0: set of modifier, 1: set of modifier duke@1: compiler.err.illegal.combination.of.modifiers=\ duke@1: illegal combination of modifiers: {0} and {1} jjg@842: duke@1: compiler.err.illegal.enum.static.ref=\ duke@1: illegal reference to static field from initializer jjg@842: duke@1: compiler.err.illegal.esc.char=\ duke@1: illegal escape character jjg@842: duke@1: compiler.err.illegal.forward.ref=\ duke@1: illegal forward reference jjg@842: jjg@1569: # 0: symbol, 1: string jjg@1569: compiler.err.not.in.profile=\ jjg@1569: {0} is not available in profile ''{1}'' jjg@1569: jjg@842: # 0: symbol duke@1: compiler.warn.forward.ref=\ duke@1: reference to variable ''{0}'' before it has been initialized jjg@842: mcimadamore@94: compiler.err.illegal.self.ref=\ mcimadamore@94: self-reference in initializer jjg@842: jjg@842: # 0: symbol mcimadamore@94: compiler.warn.self.ref=\ mcimadamore@94: self-reference in initializer of variable ''{0}'' jjg@842: duke@1: compiler.err.illegal.generic.type.for.instof=\ duke@1: illegal generic type for instanceof jjg@842: jjg@842: # 0: type duke@1: compiler.err.illegal.initializer.for.type=\ duke@1: illegal initializer for {0} jjg@842: duke@1: compiler.err.illegal.line.end.in.char.lit=\ duke@1: illegal line end in character literal jjg@842: duke@1: compiler.err.illegal.nonascii.digit=\ duke@1: illegal non-ASCII digit jjg@842: jjg@409: compiler.err.illegal.underscore=\ jjg@409: illegal underscore jjg@842: jjg@1171: compiler.err.illegal.dot=\ jjg@1171: illegal ''.'' jjg@1171: jjg@842: # 0: symbol duke@1: compiler.err.illegal.qual.not.icls=\ duke@1: illegal qualifier; {0} is not an inner class jjg@842: duke@1: compiler.err.illegal.start.of.expr=\ duke@1: illegal start of expression jjg@842: ksrini@1249: compiler.err.illegal.start.of.stmt=\ ksrini@1249: illegal start of statement ksrini@1249: duke@1: compiler.err.illegal.start.of.type=\ duke@1: illegal start of type jjg@842: duke@1: compiler.err.illegal.unicode.esc=\ duke@1: illegal unicode escape jjg@842: jjg@842: # 0: symbol duke@1: compiler.err.import.requires.canonical=\ duke@1: import requires canonical name for {0} jjg@842: duke@1: compiler.err.improperly.formed.type.param.missing=\ duke@1: improperly formed type, some parameters are missing jjg@842: duke@1: compiler.err.improperly.formed.type.inner.raw.param=\ mcimadamore@829: improperly formed type, type arguments given on a raw type jjg@842: jjg@842: # 0: type, 1: type duke@1: compiler.err.incomparable.types=\ duke@1: incomparable types: {0} and {1} jjg@842: jjg@842: # 0: number duke@1: compiler.err.int.number.too.large=\ duke@1: integer number too large: {0} jjg@842: duke@1: compiler.err.intf.annotation.members.cant.have.params=\ emc@2102: elements in annotation type declarations cannot declare formal parameters emc@2102: emc@2102: # 0: symbol duke@1: compiler.err.intf.annotation.cant.have.type.params=\ emc@2102: annotation type {0} cannot be generic jjg@842: duke@1: compiler.err.intf.annotation.members.cant.have.type.params=\ emc@2102: elements in annotation type declarations cannot be generic methods jjg@842: jjg@842: # 0: symbol, 1: type duke@1: compiler.err.intf.annotation.member.clash=\ emc@2102: annotation type {1} declares an element with the same name as method {0} jjg@842: duke@1: compiler.err.intf.expected.here=\ duke@1: interface expected here jjg@842: duke@1: compiler.err.intf.meth.cant.have.body=\ mcimadamore@1393: interface abstract methods cannot have body jjg@842: emc@2102: # 0: symbol duke@1: compiler.err.invalid.annotation.member.type=\ emc@2102: invalid type for element {0} of annotation type jjg@842: jjg@423: compiler.err.invalid.binary.number=\ jjg@423: binary numbers must contain at least one binary digit jjg@842: duke@1: compiler.err.invalid.hex.number=\ duke@1: hexadecimal numbers must contain at least one hexadecimal digit jjg@842: duke@1: compiler.err.invalid.meth.decl.ret.type.req=\ duke@1: invalid method declaration; return type required jjg@842: mcimadamore@831: compiler.err.varargs.and.old.array.syntax=\ mcimadamore@831: legacy array notation not allowed on variable-arity parameter duke@1: jjg@1755: compiler.err.varargs.and.receiver =\ jjg@1755: varargs notation not allowed on receiver parameter jjg@1755: jjg@1755: compiler.err.array.and.receiver =\ jjg@1755: legacy array notation not allowed on receiver parameter jjg@1755: ksrini@1249: compiler.err.variable.not.allowed=\ ksrini@1249: variable declaration not allowed here ksrini@1249: jjg@842: # 0: name duke@1: compiler.err.label.already.in.use=\ duke@1: label {0} already in use jjg@842: jjg@842: # 0: symbol duke@1: compiler.err.local.var.accessed.from.icls.needs.final=\ duke@1: local variable {0} is accessed from within inner class; needs to be declared final jjg@842: duke@1: compiler.err.local.enum=\ duke@1: enum types must not be local jjg@842: duke@1: compiler.err.cannot.create.array.with.type.arguments=\ duke@1: cannot create array with type arguments duke@1: mcimadamore@1061: compiler.err.cannot.create.array.with.diamond=\ mcimadamore@1061: cannot create array with ''<>'' mcimadamore@1061: duke@1: # duke@1: # limits. We don't give the limits in the diagnostic because we expect duke@1: # them to change, yet we want to use the same diagnostic. These are all duke@1: # detected during code generation. duke@1: # duke@1: compiler.err.limit.code=\ duke@1: code too large jjg@842: duke@1: compiler.err.limit.code.too.large.for.try.stmt=\ duke@1: code too large for try statement jjg@842: duke@1: compiler.err.limit.dimensions=\ duke@1: array type has too many dimensions jjg@842: duke@1: compiler.err.limit.locals=\ duke@1: too many local variables jjg@842: duke@1: compiler.err.limit.parameters=\ duke@1: too many parameters jjg@842: duke@1: compiler.err.limit.pool=\ duke@1: too many constants jjg@842: duke@1: compiler.err.limit.pool.in.class=\ duke@1: too many constants in class {0} jjg@842: duke@1: compiler.err.limit.stack=\ duke@1: code requires too much stack jjg@842: duke@1: compiler.err.limit.string=\ duke@1: constant string too long jjg@842: duke@1: compiler.err.limit.string.overflow=\ duke@1: UTF8 representation for string \"{0}...\" is too long for the constant pool duke@1: duke@1: compiler.err.malformed.fp.lit=\ duke@1: malformed floating point literal jjg@842: duke@1: compiler.err.method.does.not.override.superclass=\ duke@1: method does not override or implement a method from a supertype jjg@842: duke@1: compiler.err.missing.meth.body.or.decl.abstract=\ duke@1: missing method body, or declare abstract jjg@842: duke@1: compiler.err.missing.ret.stmt=\ duke@1: missing return statement jjg@842: jjg@1755: # 0: unused mcimadamore@1348: compiler.misc.missing.ret.val=\ mcimadamore@1348: missing return value mcimadamore@1348: mcimadamore@1415: compiler.misc.unexpected.ret.val=\ mcimadamore@1415: unexpected return value jjg@842: jjg@842: # 0: set of modifier duke@1: compiler.err.mod.not.allowed.here=\ duke@1: modifier {0} not allowed here jjg@842: duke@1: compiler.err.intf.not.allowed.here=\ duke@1: interface not allowed here jjg@842: duke@1: compiler.err.enums.must.be.static=\ duke@1: enum declarations allowed only in static contexts duke@1: jjg@842: # 0: symbol, 1: symbol duke@1: compiler.err.name.clash.same.erasure=\ duke@1: name clash: {0} and {1} have the same erasure jjg@842: mcimadamore@858: # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: unused, 5: unused duke@1: compiler.err.name.clash.same.erasure.no.override=\ duke@1: name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other jjg@842: mcimadamore@858: # 0: symbol, 1: symbol, 2: symbol, 3: symbol, 4: symbol, 5: symbol mcimadamore@858: compiler.err.name.clash.same.erasure.no.override.1=\ mcimadamore@858: name clash: {0} in {1} overrides a method whose erasure is the same as another method, yet neither overrides the other\n\ mcimadamore@858: first method: {2} in {3}\n\ mcimadamore@858: second method: {4} in {5} mcimadamore@858: mcimadamore@858: # 0: symbol, 1: symbol, 2: symbol, 3: symbol mcimadamore@858: compiler.err.name.clash.same.erasure.no.hide=\ mcimadamore@858: name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither hides the other mcimadamore@858: duke@1: compiler.err.name.reserved.for.internal.use=\ duke@1: {0} is reserved for internal use jjg@842: duke@1: compiler.err.native.meth.cant.have.body=\ duke@1: native methods cannot have a body jjg@842: jjg@842: # 0: type, 1: type duke@1: compiler.err.neither.conditional.subtype=\ jjg@842: incompatible types for ?: neither is a subtype of the other\n\ jjg@842: second operand: {0}\n\ jjg@842: third operand : {1} jjg@842: mcimadamore@1347: # 0: message segment mcimadamore@1347: compiler.misc.incompatible.type.in.conditional=\ mcimadamore@1759: bad type in conditional expression\n\ mcimadamore@1759: {0} mcimadamore@1347: mcimadamore@1415: compiler.misc.conditional.target.cant.be.void=\ mcimadamore@1415: target-type for conditional expression cannot be void mcimadamore@1415: mcimadamore@1348: # 0: type mcimadamore@1348: compiler.misc.incompatible.ret.type.in.lambda=\ mcimadamore@1348: bad return type in lambda expression\n\ mcimadamore@1348: {0} mcimadamore@1348: mcimadamore@1352: # 0: type mcimadamore@1352: compiler.misc.incompatible.ret.type.in.mref=\ mcimadamore@1352: bad return type in method reference\n\ mcimadamore@1352: {0} mcimadamore@1352: vromero@2370: compiler.err.lambda.body.neither.value.nor.void.compatible=\ vromero@2370: lambda body is neither value nor void compatible vromero@2370: mcimadamore@1348: # 0: list of type mcimadamore@1352: compiler.err.incompatible.thrown.types.in.mref=\ mcimadamore@1352: incompatible thrown types {0} in method reference mcimadamore@1352: mcimadamore@1348: compiler.misc.incompatible.arg.types.in.lambda=\ mcimadamore@1348: incompatible parameter types in lambda expression mcimadamore@1348: mcimadamore@1581: compiler.misc.incompatible.arg.types.in.mref=\ mcimadamore@1581: incompatible parameter types in method reference mcimadamore@1581: duke@1: compiler.err.new.not.allowed.in.annotation=\ duke@1: ''new'' not allowed in an annotation jjg@842: duke@1: compiler.err.no.annotation.member=\ duke@1: no annotation member {0} in {1} jjg@842: duke@1: compiler.err.no.encl.instance.of.type.in.scope=\ duke@1: no enclosing instance of type {0} is in scope jjg@842: duke@1: compiler.err.no.intf.expected.here=\ duke@1: no interface expected here jjg@842: duke@1: compiler.err.no.match.entry=\ duke@1: {0} has no match in entry in {1}; required {2} jjg@842: duke@1: compiler.err.not.annotation.type=\ duke@1: {0} is not an annotation type jjg@842: jjg@842: # 0: symbol, 1: symbol duke@1: compiler.err.not.def.access.class.intf.cant.access=\ duke@1: {0} in {1} is defined in an inaccessible class or interface jjg@842: jjg@842: # 0: symbol, 1: symbol mcimadamore@1352: compiler.misc.not.def.access.class.intf.cant.access=\ mcimadamore@1352: {0} in {1} is defined in an inaccessible class or interface mcimadamore@1352: mcimadamore@1352: # 0: symbol, 1: list of type, 2: type mcimadamore@1352: compiler.misc.cant.access.inner.cls.constr=\ mcimadamore@1352: cannot access constructor {0}({1})\n\ mcimadamore@1352: an enclosing instance of type {2} is not in scope mcimadamore@1352: mcimadamore@1352: # 0: symbol, 1: symbol duke@1: compiler.err.not.def.public.cant.access=\ duke@1: {0} is not public in {1}; cannot be accessed from outside package jjg@842: mcimadamore@1615: # 0: symbol, 1: symbol mcimadamore@1615: compiler.misc.not.def.public.cant.access=\ mcimadamore@1615: {0} is not public in {1}; cannot be accessed from outside package mcimadamore@1615: jjg@842: # 0: name duke@1: compiler.err.not.loop.label=\ duke@1: not a loop label: {0} jjg@842: duke@1: compiler.err.not.stmt=\ duke@1: not a statement jjg@842: jjg@842: # 0: symbol duke@1: compiler.err.not.encl.class=\ duke@1: not an enclosing class: {0} duke@1: jjg@842: # 0: name, 1: type, 2: unused duke@1: compiler.err.operator.cant.be.applied=\ mcimadamore@829: bad operand type {1} for unary operator ''{0}'' jjg@842: jjg@842: # 0: name, 1: type, 2: type mcimadamore@829: compiler.err.operator.cant.be.applied.1=\ mcimadamore@829: bad operand types for binary operator ''{0}''\n\ mcimadamore@829: first type: {1}\n\ mcimadamore@829: second type: {2} duke@1: duke@1: compiler.err.pkg.annotations.sb.in.package-info.java=\ duke@1: package annotations should be in file package-info.java jjg@842: jjg@842: # 0: symbol duke@1: compiler.err.pkg.clashes.with.class.of.same.name=\ duke@1: package {0} clashes with class of same name duke@1: jjg@215: compiler.err.warnings.and.werror=\ jjg@215: warnings found and -Werror specified jjg@215: duke@1: # Errors related to annotation processing duke@1: jjg@952: # 0: symbol, 1: string, 2: stack-trace duke@1: compiler.err.proc.cant.access=\ jjg@842: cannot access {0}\n\ jjg@842: {1}\n\ jjg@842: Consult the following stack trace for details.\n\ jjg@842: {2} duke@1: jjg@952: # 0: symbol, 1: string jjg@952: compiler.err.proc.cant.access.1=\ jjg@952: cannot access {0}\n\ jjg@952: {1} jjg@952: jjg@842: # 0: string duke@1: compiler.err.proc.cant.find.class=\ duke@1: Could not find class file for ''{0}''. duke@1: duke@1: # Print a client-generated error message; assumed to be localized, no translation required jjg@842: # 0: string duke@1: compiler.err.proc.messager=\ duke@1: {0} duke@1: jjg@842: # 0: list of string duke@1: compiler.err.proc.no.explicit.annotation.processing.requested=\ duke@1: Class names, ''{0}'', are only accepted if annotation processing is explicitly requested duke@1: duke@1: compiler.err.proc.no.service=\ darcy@1048: A ServiceLoader was not usable and is required for annotation processing. duke@1: duke@1: compiler.err.proc.processor.bad.option.name=\ duke@1: Bad option name ''{0}'' provided by processor ''{1}'' duke@1: jjg@842: # 0: string duke@1: compiler.err.proc.processor.cant.instantiate=\ duke@1: Could not instantiate an instance of processor ''{0}'' duke@1: jjg@842: # 0: string duke@1: compiler.err.proc.processor.not.found=\ duke@1: Annotation processor ''{0}'' not found duke@1: jjg@842: # 0: string duke@1: compiler.err.proc.processor.wrong.type=\ duke@1: Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor duke@1: duke@1: compiler.err.proc.service.problem=\ duke@1: Error creating a service loader to load Processors. duke@1: duke@1: compiler.err.proc.bad.config.file=\ duke@1: Bad service configuration file, or exception thrown while constructing Processor object: {0} duke@1: duke@1: compiler.err.proc.cant.create.loader=\ duke@1: Could not create class loader for annotation processors: {0} duke@1: jjg@842: # 0: unused duke@1: compiler.err.qualified.new.of.static.class=\ duke@1: qualified new of static class duke@1: duke@1: compiler.err.recursive.ctor.invocation=\ duke@1: recursive constructor invocation jjg@842: jjg@842: # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol duke@1: compiler.err.ref.ambiguous=\ mcimadamore@1352: reference to {0} is ambiguous\n\ mcimadamore@1352: both {1} {2} in {3} and {4} {5} in {6} match mcimadamore@1352: mcimadamore@1352: # 0: name, 1: symbol kind, 2: symbol, 3: symbol, 4: symbol kind, 5: symbol, 6: symbol mcimadamore@1352: compiler.misc.ref.ambiguous=\ mcimadamore@1352: reference to {0} is ambiguous\n\ mcimadamore@1352: both {1} {2} in {3} and {4} {5} in {6} match jjg@842: duke@1: compiler.err.repeated.annotation.target=\ duke@1: repeated annotation target jjg@842: duke@1: compiler.err.repeated.interface=\ duke@1: repeated interface jjg@842: duke@1: compiler.err.repeated.modifier=\ duke@1: repeated modifier jjg@842: jjg@842: # 0: symbol, 1: set of modifier, 2: symbol duke@1: compiler.err.report.access=\ duke@1: {0} has {1} access in {2} jjg@842: mcimadamore@1921: # 0: symbol, 1: set of modifier, 2: symbol mcimadamore@1921: compiler.misc.report.access=\ mcimadamore@1921: {0} has {1} access in {2} mcimadamore@1921: duke@1: compiler.err.ret.outside.meth=\ duke@1: return outside method duke@1: duke@1: compiler.err.signature.doesnt.match.supertype=\ duke@1: signature does not match {0}; incompatible supertype jjg@842: duke@1: compiler.err.signature.doesnt.match.intf=\ duke@1: signature does not match {0}; incompatible interfaces jjg@842: vromero@1925: # 0: number, 1: number vromero@1925: compiler.err.method.invoked.with.incorrect.number.arguments=\ vromero@1925: method invoked with incorrect number of arguments; expected {0}, found {1} vromero@1925: jjg@842: # 0: symbol, 1: symbol, 2: symbol duke@1: compiler.err.does.not.override.abstract=\ duke@1: {0} is not abstract and does not override abstract method {1} in {2} jjg@842: duke@1: compiler.err.source.cant.overwrite.input.file=\ duke@1: error writing source; cannot overwrite input file {0} jjg@842: duke@1: compiler.err.stack.sim.error=\ duke@1: Internal error: stack sim error on {0} jjg@842: duke@1: compiler.err.static.imp.only.classes.and.interfaces=\ duke@1: static import only from classes and interfaces jjg@842: darcy@430: compiler.err.string.const.req=\ darcy@430: constant string expression required jjg@842: jjg@842: # 0: symbol, 1: symbol duke@1: compiler.err.synthetic.name.conflict=\ duke@1: the symbol {0} conflicts with a compiler-synthesized symbol in {1} jjg@842: jjg@842: # 0: symbol, 1: symbol mcimadamore@359: compiler.warn.synthetic.name.conflict=\ mcimadamore@359: the symbol {0} conflicts with a compiler-synthesized symbol in {1} duke@1: duke@1: compiler.err.throws.not.allowed.in.intf.annotation=\ duke@1: throws clause not allowed in @interface members jjg@842: duke@1: compiler.err.try.without.catch.or.finally=\ duke@1: ''try'' without ''catch'' or ''finally'' jjg@842: darcy@609: compiler.err.try.without.catch.finally.or.resource.decls=\ darcy@609: ''try'' without ''catch'', ''finally'' or resource declarations jjg@842: jjg@842: # 0: symbol duke@1: compiler.err.type.doesnt.take.params=\ duke@1: type {0} does not take parameters jjg@842: duke@1: compiler.err.type.var.cant.be.deref=\ duke@1: cannot select from a type variable jjg@842: duke@1: compiler.err.type.var.may.not.be.followed.by.other.bounds=\ duke@1: a type variable may not be followed by other bounds jjg@842: duke@1: compiler.err.type.var.more.than.once=\ duke@1: type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated jjg@842: duke@1: compiler.err.type.var.more.than.once.in.result=\ duke@1: type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated jjg@842: jjg@842: # 0: type, 1: type, 2: string duke@1: compiler.err.types.incompatible.diff.ret=\ duke@1: types {0} and {1} are incompatible; both define {2}, but with unrelated return types duke@1: mcimadamore@1393: # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol mcimadamore@1393: compiler.err.types.incompatible.unrelated.defaults=\ mcimadamore@1393: {0} {1} inherits unrelated defaults for {2}({3}) from types {4} and {5} mcimadamore@1393: mcimadamore@1393: # 0: kind, 1: type, 2: name, 3: list of type, 4: symbol, 5: symbol mcimadamore@1393: compiler.err.types.incompatible.abstract.default=\ mcimadamore@1393: {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5} mcimadamore@1393: mcimadamore@1393: # 0: name, 1: kind, 2: symbol mcimadamore@1393: compiler.err.default.overrides.object.member=\ mcimadamore@1393: default method {0} in {1} {2} overrides a member of java.lang.Object mcimadamore@1393: mcimadamore@1513: # 0: type mcimadamore@1513: compiler.err.illegal.static.intf.meth.call=\ mcimadamore@1513: illegal static interface method call\n\ mcimadamore@1513: the receiver expression should be replaced with the type qualifier ''{0}'' mcimadamore@1513: mcimadamore@1393: # 0: type, 1: message segment mcimadamore@1393: compiler.err.illegal.default.super.call=\ mcimadamore@1393: bad type qualifier {0} in default super call\n\ mcimadamore@1393: {1} mcimadamore@1393: mcimadamore@1393: # 0: symbol, 1: type mcimadamore@1393: compiler.misc.overridden.default=\ mcimadamore@1415: method {0} is overridden in {1} mcimadamore@1393: jjg@1755: # 0: symbol, 1: type or symbol mcimadamore@1393: compiler.misc.redundant.supertype=\ mcimadamore@1393: redundant interface {0} is extended by {1} mcimadamore@1393: duke@1: compiler.err.unclosed.char.lit=\ duke@1: unclosed character literal jjg@842: duke@1: compiler.err.unclosed.comment=\ duke@1: unclosed comment jjg@842: duke@1: compiler.err.unclosed.str.lit=\ duke@1: unclosed string literal jjg@842: jjg@842: # 0: name duke@1: compiler.err.unsupported.encoding=\ duke@1: unsupported encoding: {0} jjg@842: duke@1: compiler.err.io.exception=\ duke@1: error reading source file: {0} jjg@842: jjg@842: # 0: name duke@1: compiler.err.undef.label=\ duke@1: undefined label: {0} jjg@842: jjg@842: # 0: message segment, 1: unused mcimadamore@537: compiler.err.cant.apply.diamond=\ mcimadamore@537: cannot infer type arguments for {0} jjg@842: jjg@1136: # 0: message segment or type, 1: message segment mcimadamore@537: compiler.err.cant.apply.diamond.1=\ mcimadamore@1238: cannot infer type arguments for {0}\n\ mcimadamore@1238: reason: {1} mcimadamore@1238: mcimadamore@1238: # 0: message segment or type, 1: message segment mcimadamore@1238: compiler.misc.cant.apply.diamond.1=\ mcimadamore@1238: cannot infer type arguments for {0}\n\ mcimadamore@537: reason: {1} jjg@842: duke@1: compiler.err.unreachable.stmt=\ duke@1: unreachable statement jjg@842: duke@1: compiler.err.initializer.must.be.able.to.complete.normally=\ duke@1: initializer must be able to complete normally jjg@842: jjg@842: # 0: type duke@1: compiler.err.unreported.exception.need.to.catch.or.throw=\ duke@1: unreported exception {0}; must be caught or declared to be thrown jjg@842: jjg@842: # 0: type duke@1: compiler.err.unreported.exception.default.constructor=\ duke@1: unreported exception {0} in default constructor jjg@842: mcimadamore@878: # 0: type, 1: name mcimadamore@878: compiler.err.unreported.exception.implicit.close=\ mcimadamore@878: unreported exception {0}; must be caught or declared to be thrown\n\ mcimadamore@878: exception thrown from implicit call to close() on resource variable ''{1}'' mcimadamore@878: duke@1: compiler.err.unsupported.cross.fp.lit=\ duke@1: hexadecimal floating-point literals are not supported on this VM jjg@842: duke@1: compiler.err.void.not.allowed.here=\ duke@1: ''void'' type not allowed here duke@1: jjg@842: # 0: string duke@1: compiler.err.wrong.number.type.args=\ duke@1: wrong number of type arguments; required {0} duke@1: jjg@842: # 0: symbol duke@1: compiler.err.var.might.already.be.assigned=\ duke@1: variable {0} might already have been assigned jjg@842: jjg@842: # 0: symbol duke@1: compiler.err.var.might.not.have.been.initialized=\ duke@1: variable {0} might not have been initialized jjg@842: jjg@842: # 0: symbol ksrini@1914: compiler.err.var.not.initialized.in.default.constructor=\ ksrini@1914: variable {0} not initialized in the default constructor ksrini@1914: ksrini@1914: # 0: symbol duke@1: compiler.err.var.might.be.assigned.in.loop=\ duke@1: variable {0} might be assigned in loop duke@1: jjg@842: # 0: symbol, 1: message segment mcimadamore@795: compiler.err.varargs.invalid.trustme.anno=\ mcimadamore@795: Invalid {0} annotation. {1} jjg@842: jjg@842: # 0: type mcimadamore@795: compiler.misc.varargs.trustme.on.reifiable.varargs=\ mcimadamore@795: Varargs element type {0} is reifiable. jjg@842: jjg@842: # 0: symbol mcimadamore@795: compiler.misc.varargs.trustme.on.non.varargs.meth=\ mcimadamore@795: Method {0} is not a varargs method. jjg@842: jjg@842: # 0: symbol mcimadamore@795: compiler.misc.varargs.trustme.on.virtual.varargs=\ mcimadamore@795: Instance method {0} is not final. mcimadamore@795: jjg@1136: # 0: type, 1: symbol kind, 2: symbol mcimadamore@845: compiler.misc.inaccessible.varargs.type=\ mcimadamore@845: formal varargs element type {0} is not accessible from {1} {2} mcimadamore@845: duke@1: # In the following string, {1} will always be the detail message from duke@1: # java.io.IOException. jjg@842: # 0: symbol, 1: string duke@1: compiler.err.class.cant.write=\ duke@1: error while writing {0}: {1} duke@1: duke@1: # In the following string, {0} is the name of the class in the Java source. duke@1: # It really should be used two times.. jjg@842: # 0: name duke@1: compiler.err.class.public.should.be.in.file=\ duke@1: class {0} is public, should be declared in a file named {0}.java duke@1: duke@1: ## All errors which do not refer to a particular line in the source code are duke@1: ## preceded by this string. duke@1: compiler.err.error=\ duke@1: error:\u0020 duke@1: duke@1: # The following error messages do not refer to a line in the source code. duke@1: compiler.err.cant.read.file=\ duke@1: cannot read: {0} duke@1: duke@1: ##### duke@1: duke@1: # Fatal Errors duke@1: duke@1: compiler.misc.fatal.err.no.java.lang=\ duke@1: Fatal Error: Unable to find package java.lang in classpath or bootclasspath jjg@842: duke@1: compiler.misc.fatal.err.cant.locate.meth=\ duke@1: Fatal Error: Unable to find method {0} jjg@842: duke@1: compiler.misc.fatal.err.cant.locate.field=\ duke@1: Fatal Error: Unable to find field {0} jjg@842: duke@1: compiler.misc.fatal.err.cant.locate.ctor=\ duke@1: Fatal Error: Unable to find constructor for {0} jjg@842: jjg@1096: compiler.misc.fatal.err.cant.close=\ jjg@1096: Fatal Error: Cannot close compiler resources duke@1: duke@1: ##### duke@1: duke@1: ## duke@1: ## miscellaneous strings duke@1: ## duke@1: duke@1: compiler.misc.source.unavailable=\ duke@1: (source unavailable) jjg@842: duke@1: compiler.misc.base.membership=\ duke@1: all your base class are belong to us jjg@842: jjg@842: # 0: string, 1: string, 2: boolean duke@1: compiler.misc.x.print.processor.info=\ duke@1: Processor {0} matches {1} and returns {2}. jjg@842: jjg@842: # 0: number, 1: string, 2: set of symbol, 3: boolean duke@1: compiler.misc.x.print.rounds=\ duke@1: Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3} duke@1: duke@1: ##### duke@1: duke@1: ## The following string will appear before all messages keyed as: duke@1: ## "compiler.note". mcimadamore@1348: mcimadamore@1759: compiler.note.compressed.diags=\ mcimadamore@1759: Some messages have been simplified; recompile with -Xdiags:verbose to get full output mcimadamore@1759: mcimadamore@1348: compiler.note.potential.lambda.found=\ mcimadamore@1348: This anonymous inner class creation can be turned into a lambda expression. mcimadamore@1348: mcimadamore@1817: # 0: boolean, 1: symbol mcimadamore@1817: compiler.note.lambda.stat=\ mcimadamore@1817: Translating lambda expression\n\ mcimadamore@1817: alternate metafactory = {0}\n\ mcimadamore@1817: synthetic method = {1} mcimadamore@1817: mcimadamore@1817: # 0: boolean, 1: unused mcimadamore@1817: compiler.note.mref.stat=\ mcimadamore@1817: Translating method reference\n\ mcimadamore@1817: alternate metafactory = {0}\n\ mcimadamore@1817: mcimadamore@1817: # 0: boolean, 1: symbol mcimadamore@1817: compiler.note.mref.stat.1=\ mcimadamore@1817: Translating method reference\n\ mcimadamore@1817: alternate metafactory = {0}\n\ mcimadamore@1817: bridge method = {1} mcimadamore@1817: duke@1: compiler.note.note=\ duke@1: Note:\u0020 duke@1: jjg@842: # 0: file name duke@1: compiler.note.deprecated.filename=\ duke@1: {0} uses or overrides a deprecated API. jjg@842: duke@1: compiler.note.deprecated.plural=\ duke@1: Some input files use or override a deprecated API. jjg@842: duke@1: # The following string may appear after one of the above deprecation duke@1: # messages. duke@1: compiler.note.deprecated.recompile=\ duke@1: Recompile with -Xlint:deprecation for details. duke@1: jjg@842: # 0: file name duke@1: compiler.note.deprecated.filename.additional=\ duke@1: {0} has additional uses or overrides of a deprecated API. jjg@842: duke@1: compiler.note.deprecated.plural.additional=\ duke@1: Some input files additionally use or override a deprecated API. duke@1: jjg@842: # 0: file name duke@1: compiler.note.unchecked.filename=\ duke@1: {0} uses unchecked or unsafe operations. jjg@842: duke@1: compiler.note.unchecked.plural=\ duke@1: Some input files use unchecked or unsafe operations. jjg@842: duke@1: # The following string may appear after one of the above deprecation duke@1: # messages. duke@1: compiler.note.unchecked.recompile=\ duke@1: Recompile with -Xlint:unchecked for details. duke@1: jjg@842: # 0: file name duke@1: compiler.note.unchecked.filename.additional=\ duke@1: {0} has additional unchecked or unsafe operations. jjg@842: duke@1: compiler.note.unchecked.plural.additional=\ duke@1: Some input files additionally use unchecked or unsafe operations. duke@1: jjg@842: # 0: file name jjg@377: compiler.note.sunapi.filename=\ jjg@582: {0} uses internal proprietary API that may be removed in a future release. jjg@842: jjg@377: compiler.note.sunapi.plural=\ jjg@582: Some input files use internal proprietary API that may be removed in a future release. jjg@842: jjg@377: # The following string may appear after one of the above sunapi messages. jjg@377: compiler.note.sunapi.recompile=\ jjg@377: Recompile with -Xlint:sunapi for details. jjg@377: jjg@842: # 0: file name jjg@377: compiler.note.sunapi.filename.additional=\ jjg@582: {0} uses additional internal proprietary API that may be removed in a future release. jjg@842: jjg@377: compiler.note.sunapi.plural.additional=\ jjg@582: Some input files additionally use internal proprietary API that may be removed in a future release. jjg@377: jjg@377: # Notes related to annotation processing jjg@377: jjg@377: # Print a client-generated note; assumed to be localized, no translation required jjg@842: # 0: string jjg@377: compiler.note.proc.messager=\ jjg@377: {0} jjg@377: duke@1: ##### duke@1: jjg@842: # 0: number duke@1: compiler.misc.count.error=\ duke@1: {0} error jjg@842: jjg@842: # 0: number duke@1: compiler.misc.count.error.plural=\ duke@1: {0} errors jjg@842: jjg@842: # 0: number duke@1: compiler.misc.count.warn=\ duke@1: {0} warning jjg@842: jjg@842: # 0: number duke@1: compiler.misc.count.warn.plural=\ duke@1: {0} warnings duke@1: jjg@597: compiler.misc.version.not.available=\ jjg@597: (version info not available) jjg@597: duke@1: ## extra output when using -verbose (JavaCompiler) duke@1: jjg@842: # 0: symbol duke@1: compiler.misc.verbose.checking.attribution=\ duke@1: [checking {0}] jjg@842: jjg@842: # 0: string duke@1: compiler.misc.verbose.parsing.done=\ duke@1: [parsing completed {0}ms] jjg@842: jjg@842: # 0: file name duke@1: compiler.misc.verbose.parsing.started=\ duke@1: [parsing started {0}] jjg@842: jjg@842: # 0: string duke@1: compiler.misc.verbose.total=\ duke@1: [total {0}ms] jjg@842: jjg@842: # 0: file name duke@1: compiler.misc.verbose.wrote.file=\ duke@1: [wrote {0}] duke@1: duke@1: ## extra output when using -verbose (Retro) duke@1: compiler.misc.verbose.retro=\ duke@1: [retrofitting {0}] jjg@842: duke@1: compiler.misc.verbose.retro.with=\ duke@1: \tretrofitting {0} with {1} jjg@842: duke@1: compiler.misc.verbose.retro.with.list=\ duke@1: \tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3} duke@1: duke@1: ## extra output when using -verbose (code/ClassReader) jjg@842: # 0: string duke@1: compiler.misc.verbose.loading=\ duke@1: [loading {0}] duke@1: jjg@842: # 0: string duke@1: compiler.misc.verbose.sourcepath=\ duke@1: [search path for source files: {0}] duke@1: jjg@842: # 0: string duke@1: compiler.misc.verbose.classpath=\ duke@1: [search path for class files: {0}] duke@1: duke@1: ## extra output when using -checkclassfile (code/ClassReader) duke@1: compiler.misc.ccf.found.later.version=\ duke@1: class file has later version than expected: {0} jjg@842: duke@1: compiler.misc.ccf.unrecognized.attribute=\ duke@1: unrecognized attribute: {0} duke@1: duke@1: ## extra output when using -prompt (util/Log) duke@1: compiler.misc.resume.abort=\ duke@1: R)esume, A)bort> duke@1: duke@1: ##### duke@1: duke@1: ## duke@1: ## warnings duke@1: ## duke@1: duke@1: ## All warning messages are preceded by the following string. duke@1: compiler.warn.warning=\ duke@1: warning:\u0020 duke@1: jjg@612: ## Warning messages may also include the following prefix to identify a jjg@612: ## lint option jjg@842: # 0: option name jjg@612: compiler.warn.lintOption=\ jjg@612: [{0}]\u0020 jjg@612: jjg@842: # 0: symbol duke@1: compiler.warn.constant.SVUID=\ jjg@612: serialVersionUID must be constant in class {0} duke@1: jjg@842: # 0: file name duke@1: compiler.warn.dir.path.element.not.found=\ jjg@612: bad path element "{0}": no such directory duke@1: duke@1: compiler.warn.finally.cannot.complete=\ jjg@612: finally clause cannot complete normally duke@1: jjg@842: # 0: symbol, 1: symbol duke@1: compiler.warn.has.been.deprecated=\ jjg@612: {0} in {1} has been deprecated duke@1: jjg@842: # 0: symbol duke@1: compiler.warn.sun.proprietary=\ jjg@582: {0} is internal proprietary API and may be removed in a future release duke@1: duke@1: compiler.warn.illegal.char.for.encoding=\ duke@1: unmappable character for encoding {0} jjg@612: jjg@842: # 0: symbol duke@1: compiler.warn.improper.SVUID=\ jjg@612: serialVersionUID must be declared static final in class {0} duke@1: jjg@842: # 0: type, 1: type duke@1: compiler.warn.inexact.non-varargs.call=\ jjg@842: non-varargs call of varargs method with inexact argument type for last parameter;\n\ jjg@842: cast to {0} for a varargs call\n\ jjg@842: cast to {1} for a non-varargs call and to suppress this warning duke@1: mcimadamore@935: # 0: list of type mcimadamore@935: compiler.warn.unreachable.catch=\ mcimadamore@935: unreachable catch clause\n\ mcimadamore@935: thrown type {0} has already been caught mcimadamore@935: mcimadamore@935: # 0: list of type mcimadamore@935: compiler.warn.unreachable.catch.1=\ mcimadamore@935: unreachable catch clause\n\ mcimadamore@935: thrown types {0} have already been caught mcimadamore@935: jjg@842: # 0: symbol duke@1: compiler.warn.long.SVUID=\ jjg@612: serialVersionUID must be of type long in class {0} duke@1: jjg@842: # 0: symbol duke@1: compiler.warn.missing.SVUID=\ jjg@612: serializable class {0} has no definition of serialVersionUID duke@1: vromero@2000: # 0: symbol, 1: symbol, 2: symbol, 3: symbol vromero@2000: compiler.warn.potentially.ambiguous.overload=\ vromero@2000: {0} in {1} is potentially ambiguous with {2} in {3} vromero@2000: jjg@842: # 0: message segment duke@1: compiler.warn.override.varargs.missing=\ duke@1: {0}; overridden method has no ''...'' jjg@842: jjg@842: # 0: message segment duke@1: compiler.warn.override.varargs.extra=\ duke@1: {0}; overriding method is missing ''...'' jjg@842: duke@1: compiler.warn.override.bridge=\ duke@1: {0}; overridden method is a bridge method duke@1: jjg@842: # 0: symbol duke@1: compiler.warn.pkg-info.already.seen=\ jjg@457: a package-info.java file has already been seen for package {0} jjg@612: jjg@842: # 0: file name duke@1: compiler.warn.path.element.not.found=\ jjg@612: bad path element "{0}": no such file or directory jjg@612: duke@1: compiler.warn.possible.fall-through.into.case=\ jjg@612: possible fall-through into case duke@1: jjg@842: # 0: type duke@1: compiler.warn.redundant.cast=\ jjg@612: redundant cast to {0} duke@1: jjg@842: # 0: number duke@1: compiler.warn.position.overflow=\ duke@1: Position encoding overflows at line {0} duke@1: jjg@842: # 0: file name, 1: number, 2: number duke@1: compiler.warn.big.major.version=\ duke@1: {0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\ duke@1: It is recommended that the compiler be upgraded. duke@1: jjg@842: # 0: symbol kind, 1: symbol jjg@505: compiler.warn.static.not.qualified.by.type=\ jjg@612: static {0} should be qualified by type name, {1}, instead of by an expression jjg@505: jjg@842: # 0: string jjg@757: compiler.warn.source.no.bootclasspath=\ jjg@757: bootstrap class path not set in conjunction with -source {0} jjg@757: darcy@1961: # 0: string darcy@1961: compiler.warn.option.obsolete.source=\ darcy@1961: source value {0} is obsolete and will be removed in a future release darcy@1961: darcy@1961: # 0: string darcy@1961: compiler.warn.option.obsolete.target=\ darcy@1961: target value {0} is obsolete and will be removed in a future release darcy@1961: darcy@1961: compiler.warn.option.obsolete.suppression=\ darcy@1961: To suppress warnings about obsolete options, use -Xlint:-options. darcy@1961: jjg@842: # 0: name, 1: number, 2: number, 3: number, 4: number jjg@776: compiler.warn.future.attr=\ jjg@776: {0} attribute introduced in version {1}.{2} class files is ignored in version {3}.{4} class files jjg@776: duke@1: # Warnings related to annotation processing jjg@842: # 0: name duke@1: compiler.warn.proc.package.does.not.exist=\ duke@1: package {0} does not exist jjg@842: jjg@842: # 0: name duke@1: compiler.warn.proc.file.reopening=\ duke@1: Attempt to create a file for ''{0}'' multiple times duke@1: jjg@842: # 0: name duke@1: compiler.warn.proc.type.already.exists=\ duke@1: A file for type ''{0}'' already exists on the sourcepath or classpath duke@1: jjg@842: # 0: name duke@1: compiler.warn.proc.type.recreate=\ duke@1: Attempt to create a file for type ''{0}'' multiple times duke@1: jjg@842: # 0: string duke@1: compiler.warn.proc.illegal.file.name=\ duke@1: Cannot create file for illegal name ''{0}''. duke@1: jjg@842: # 0: string, 1: string jjg@618: compiler.warn.proc.suspicious.class.name=\ jjg@618: Creating file for a type whose name ends in {1}: ''{0}'' jjg@618: jjg@842: # 0: name duke@1: compiler.warn.proc.file.create.last.round=\ duke@1: File for type ''{0}'' created in the last round will not be subject to annotation processing. duke@1: jjg@842: # 0: string, 1: string duke@1: compiler.warn.proc.malformed.supported.string=\ duke@1: Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}'' duke@1: jjg@842: # 0: set of string duke@1: compiler.warn.proc.annotations.without.processors=\ duke@1: No processor claimed any of these annotations: {0} duke@1: jjg@842: # 0: source version, 1: string, 2: string duke@1: compiler.warn.proc.processor.incompatible.source.version=\ duke@1: Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}'' duke@1: duke@1: compiler.warn.proc.proc-only.requested.no.procs=\ duke@1: Annotation processing without compilation requested but no processors were found. duke@1: duke@1: compiler.warn.proc.use.implicit=\ jjg@842: Implicitly compiled files were not subject to annotation processing.\n\ jjg@842: Use -implicit to specify a policy for implicit compilation. duke@1: duke@1: compiler.warn.proc.use.proc.or.implicit=\ jjg@842: Implicitly compiled files were not subject to annotation processing.\n\ jjg@842: Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation. duke@1: duke@1: # Print a client-generated warning; assumed to be localized, no translation required jjg@842: # 0: string duke@1: compiler.warn.proc.messager=\ duke@1: {0} duke@1: jjg@842: # 0: set of name duke@1: compiler.warn.proc.unclosed.type.files=\ duke@1: Unclosed files for the types ''{0}''; these types will not undergo annotation processing duke@1: jjg@842: # 0: string duke@1: compiler.warn.proc.unmatched.processor.options=\ duke@1: The following options were not recognized by any processor: ''{0}'' duke@1: mcimadamore@743: compiler.warn.try.explicit.close.call=\ mcimadamore@743: explicit call to close() on an auto-closeable resource jjg@842: jjg@842: # 0: symbol mcimadamore@743: compiler.warn.try.resource.not.referenced=\ mcimadamore@743: auto-closeable resource {0} is never referenced in body of corresponding try statement jjg@842: mcimadamore@951: # 0: type mcimadamore@951: compiler.warn.try.resource.throws.interrupted.exc=\ mcimadamore@951: auto-closeable resource {0} has a member method close() that could throw InterruptedException mcimadamore@951: duke@1: compiler.warn.unchecked.assign=\ jjg@612: unchecked assignment: {0} to {1} jjg@842: jjg@842: # 0: symbol, 1: type duke@1: compiler.warn.unchecked.assign.to.var=\ jjg@612: unchecked assignment to variable {0} as member of raw type {1} jjg@842: jjg@842: # 0: symbol, 1: type duke@1: compiler.warn.unchecked.call.mbr.of.raw.type=\ jjg@612: unchecked call to {0} as a member of the raw type {1} jjg@842: duke@1: compiler.warn.unchecked.cast.to.type=\ jjg@612: unchecked cast to type {0} jjg@842: jjg@842: # 0: symbol kind, 1: name, 2: list of type, 3: list of type, 4: symbol kind, 5: symbol duke@1: compiler.warn.unchecked.meth.invocation.applied=\ jjg@612: unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\ mcimadamore@161: required: {2}\n\ mcimadamore@161: found: {3} mcimadamore@161: jjg@842: # 0: type duke@1: compiler.warn.unchecked.generic.array.creation=\ jjg@612: unchecked generic array creation for varargs parameter of type {0} duke@1: jjg@842: # 0: type mcimadamore@795: compiler.warn.unchecked.varargs.non.reifiable.type=\ jjg@612: Possible heap pollution from parameterized vararg type {0} mcimadamore@580: jjg@842: # 0: symbol mcimadamore@795: compiler.warn.varargs.unsafe.use.varargs.param=\ mcimadamore@795: Varargs method could cause heap pollution from non-reifiable varargs parameter {0} mcimadamore@795: duke@1: compiler.warn.missing.deprecated.annotation=\ jjg@612: deprecated item is not annotated with @Deprecated duke@1: duke@1: compiler.warn.invalid.archive.file=\ jjg@612: Unexpected file on path: {0} duke@1: duke@1: compiler.warn.unexpected.archive.file=\ jjg@612: Unexpected extension for archive file: {0} duke@1: duke@1: compiler.warn.div.zero=\ jjg@612: division by zero duke@1: duke@1: compiler.warn.empty.if=\ jjg@612: empty statement after if duke@1: duke@1: compiler.warn.annotation.method.not.found=\ duke@1: Cannot find annotation method ''{1}()'' in type ''{0}'' duke@1: duke@1: compiler.warn.annotation.method.not.found.reason=\ duke@1: Cannot find annotation method ''{1}()'' in type ''{0}'': {2} duke@1: mcimadamore@992: # 0: symbol, 1: name mcimadamore@992: compiler.warn.unknown.enum.constant=\ mcimadamore@992: unknown enum constant {1}.{2} mcimadamore@992: mcimadamore@992: # 0: symbol, 1: name, 2: message segment mcimadamore@992: compiler.warn.unknown.enum.constant.reason=\ mcimadamore@992: unknown enum constant {1}.{2}\n\ mcimadamore@992: reason: {3} mcimadamore@992: jjg@842: # 0: type, 1: type mcimadamore@122: compiler.warn.raw.class.use=\ jjg@612: found raw type: {0}\n\ mcimadamore@829: missing type arguments for generic class {1} mcimadamore@122: jjg@842: # 0: unused, 1: unused mcimadamore@731: compiler.warn.diamond.redundant.args=\ mcimadamore@731: redundant type arguments in new expression (use diamond operator instead). jjg@842: jjg@842: # 0: type, 1: type mcimadamore@731: compiler.warn.diamond.redundant.args.1=\ mcimadamore@731: redundant type arguments in new expression (use diamond operator instead).\n\ mcimadamore@731: explicit: {0}\n\ mcimadamore@731: inferred: {1} mcimadamore@731: jjg@842: # 0: symbol, 1: message segment mcimadamore@795: compiler.warn.varargs.redundant.trustme.anno=\ mcimadamore@795: Redundant {0} annotation. {1} mcimadamore@795: vromero@2390: # 0: symbol vromero@2390: compiler.warn.access.to.sensitive.member.from.serializable.element=\ vromero@2390: access to sensitive member {0} from serializable element can be publicly accessible to untrusted code vromero@2390: duke@1: ##### duke@1: duke@1: ## The following are tokens which are non-terminals in the language. They should duke@1: ## be named as JLS3 calls them when translated to the appropriate language. duke@1: compiler.misc.token.identifier=\ duke@1: jjg@842: duke@1: compiler.misc.token.character=\ duke@1: jjg@842: duke@1: compiler.misc.token.string=\ duke@1: jjg@842: duke@1: compiler.misc.token.integer=\ duke@1: jjg@842: duke@1: compiler.misc.token.long-integer=\ duke@1: jjg@842: duke@1: compiler.misc.token.float=\ duke@1: jjg@842: duke@1: compiler.misc.token.double=\ duke@1: jjg@842: duke@1: compiler.misc.token.bad-symbol=\ duke@1: jjg@842: duke@1: compiler.misc.token.end-of-input=\ duke@1: duke@1: duke@1: ## The argument to the following string will always be one of the following: duke@1: ## 1. one of the above non-terminals duke@1: ## 2. a keyword (JLS1.8) duke@1: ## 3. a boolean literal (JLS3.10.3) duke@1: ## 4. the null literal (JLS3.10.7) duke@1: ## 5. a Java separator (JLS3.11) duke@1: ## 6. an operator (JLS3.12) duke@1: ## duke@1: ## This is the only place these tokens will be used. jjg@842: # 0: token duke@1: compiler.err.expected=\ duke@1: {0} expected jjg@842: jjg@842: # 0: token, 1: token duke@1: compiler.err.expected2=\ duke@1: {0} or {1} expected jjg@842: jjg@842: # 0: token, 1: token, 2: token duke@1: compiler.err.expected3=\ duke@1: {0}, {1}, or {2} expected duke@1: duke@1: compiler.err.premature.eof=\ duke@1: reached end of file while parsing duke@1: duke@1: ## The following are related in form, but do not easily fit the above paradigm. duke@1: compiler.err.dot.class.expected=\ duke@1: ''.class'' expected duke@1: duke@1: ## The argument to this string will always be either 'case' or 'default'. jjg@842: # 0: token duke@1: compiler.err.orphaned=\ duke@1: orphaned {0} duke@1: jjg@842: # 0: name duke@1: compiler.misc.anonymous.class=\ duke@1: duke@1: jjg@842: # 0: name, 1: type mcimadamore@121: compiler.misc.type.captureof=\ mcimadamore@121: capture#{0} of {1} mcimadamore@121: mcimadamore@238: compiler.misc.type.captureof.1=\ mcimadamore@238: capture#{0} mcimadamore@238: mcimadamore@121: compiler.misc.type.none=\ mcimadamore@121: mcimadamore@121: duke@1: compiler.misc.unnamed.package=\ duke@1: unnamed package duke@1: duke@1: ##### duke@1: jjg@842: # 0: symbol, 1: message segment duke@1: compiler.err.cant.access=\ jjg@842: cannot access {0}\n\ jjg@842: {1} duke@1: pgovereau@2375: # 0: file name, 1: expected CP entry type, 2: constant pool index pgovereau@2375: compiler.misc.bad.const.pool.entry=\ pgovereau@2375: bad constant pool entry in {0}\n\ pgovereau@2375: expected {1} at index {2} pgovereau@2375: jlahoda@2099: # 0: file name, 1: message segment duke@1: compiler.misc.bad.class.file.header=\ jjg@842: bad class file: {0}\n\ jjg@842: {1}\n\ jjg@842: Please remove or make sure it appears in the correct subdirectory of the classpath. jjg@842: jjg@842: # 0: file name, 1: message segment jjg@12: compiler.misc.bad.source.file.header=\ jjg@842: bad source file: {0}\n\ jjg@842: {1}\n\ jjg@842: Please remove or make sure it appears in the correct subdirectory of the sourcepath. duke@1: duke@1: ## The following are all possible strings for the second argument ({1}) of the duke@1: ## above strings. duke@1: compiler.misc.bad.class.signature=\ duke@1: bad class signature: {0} jjg@842: jjg@952: #0: symbol, 1: symbol jjg@952: compiler.misc.bad.enclosing.class=\ jjg@952: bad enclosing class for {0}: {1} jjg@952: jjg@952: # 0: symbol duke@1: compiler.misc.bad.enclosing.method=\ jjg@952: bad enclosing method attribute for class {0} jjg@842: duke@1: compiler.misc.bad.runtime.invisible.param.annotations=\ duke@1: bad RuntimeInvisibleParameterAnnotations attribute: {0} jjg@842: duke@1: compiler.misc.bad.const.pool.tag=\ duke@1: bad constant pool tag: {0} jjg@842: duke@1: compiler.misc.bad.const.pool.tag.at=\ duke@1: bad constant pool tag: {0} at {1} jjg@842: duke@1: compiler.misc.bad.signature=\ duke@1: bad signature: {0} jjg@842: jjg@1521: compiler.misc.bad.type.annotation.value=\ jjg@1521: bad type annotation target type value: {0} jjg@1521: duke@1: compiler.misc.class.file.wrong.class=\ duke@1: class file contains wrong class: {0} jjg@842: duke@1: compiler.misc.class.file.not.found=\ duke@1: class file for {0} not found jjg@842: jlahoda@2099: # 0: classfile major version, 1: classfile minor version jlahoda@2099: compiler.misc.invalid.default.interface=\ jlahoda@2099: default method found in version {0}.{1} classfile jlahoda@2099: jlahoda@2099: # 0: classfile major version, 1: classfile minor version jlahoda@2099: compiler.misc.invalid.static.interface=\ jlahoda@2099: static method found in version {0}.{1} classfile jlahoda@2099: jjg@842: # 0: name duke@1: compiler.misc.file.doesnt.contain.class=\ duke@1: file does not contain class {0} jjg@842: duke@1: compiler.misc.file.does.not.contain.package=\ duke@1: file does not contain package {0} jjg@842: duke@1: compiler.misc.illegal.start.of.class.file=\ duke@1: illegal start of class file jjg@842: duke@1: compiler.misc.unable.to.access.file=\ duke@1: unable to access file: {0} jjg@842: duke@1: compiler.misc.unicode.str.not.supported=\ duke@1: unicode string in class file not supported jjg@842: duke@1: compiler.misc.undecl.type.var=\ duke@1: undeclared type variable: {0} jjg@842: duke@1: compiler.misc.wrong.version=\ duke@1: class file has wrong version {0}.{1}, should be {2}.{3} duke@1: duke@1: ##### duke@1: jjg@842: # 0: type, 1: type or symbol duke@1: compiler.err.not.within.bounds=\ mcimadamore@829: type argument {0} is not within bounds of type-variable {1} duke@1: duke@1: ## The following are all possible strings for the second argument ({1}) of the duke@1: ## above string. duke@1: duke@1: ## none yet... duke@1: duke@1: ##### duke@1: mcimadamore@1296: # 0: message segment duke@1: compiler.err.prob.found.req=\ mcimadamore@1238: incompatible types: {0} jjg@842: mcimadamore@1759: # 0: message segment mcimadamore@1759: compiler.misc.prob.found.req=\ mcimadamore@1759: incompatible types: {0} mcimadamore@1759: jjg@842: # 0: message segment, 1: type, 2: type duke@1: compiler.warn.prob.found.req=\ jjg@842: {0}\n\ jjg@842: required: {2}\n\ jjg@842: found: {1} jjg@842: mcimadamore@1238: # 0: type, 1: type duke@1: compiler.misc.inconvertible.types=\ mcimadamore@1238: {0} cannot be converted to {1} jjg@842: mcimadamore@1296: # 0: type, 1: type duke@1: compiler.misc.possible.loss.of.precision=\ mcimadamore@1296: possible lossy conversion from {0} to {1} duke@1: duke@1: compiler.misc.unchecked.assign=\ jjg@612: unchecked conversion jjg@842: duke@1: # compiler.misc.storecheck=\ jjg@612: # assignment might cause later store checks to fail duke@1: # compiler.misc.unchecked=\ jjg@612: # assigned array cannot dynamically check its stores duke@1: compiler.misc.unchecked.cast.to.type=\ jjg@612: unchecked cast duke@1: duke@1: # compiler.err.star.expected=\ duke@1: # ''*'' expected duke@1: # compiler.err.no.elem.type=\ duke@1: # \[\*\] cannot have a type duke@1: mcimadamore@1238: # 0: type mcimadamore@743: compiler.misc.try.not.applicable.to.type=\ mcimadamore@1296: try-with-resources not applicable to variable type\n\ mcimadamore@1296: ({0}) mcimadamore@743: duke@1: ##### duke@1: jjg@842: # 0: message segment or type, 1: message segment duke@1: compiler.err.type.found.req=\ jjg@842: unexpected type\n\ jjg@842: required: {1}\n\ jjg@842: found: {0} duke@1: duke@1: ## The following are all possible strings for the first argument ({0}) of the duke@1: ## above string. duke@1: compiler.misc.type.req.class=\ duke@1: class jjg@842: duke@1: compiler.misc.type.req.class.array=\ duke@1: class or array jjg@842: mcimadamore@829: compiler.misc.type.req.array.or.iterable=\ mcimadamore@829: array or java.lang.Iterable jjg@842: duke@1: compiler.misc.type.req.ref=\ duke@1: reference jjg@842: duke@1: compiler.misc.type.req.exact=\ duke@1: class or interface without bounds jjg@842: jjg@842: # 0: type duke@1: compiler.misc.type.parameter=\ mcimadamore@80: type parameter {0} duke@1: duke@1: ##### duke@1: duke@1: ## The following are all possible strings for the last argument of all those duke@1: ## diagnostics whose key ends in ".1" mcimadamore@1238: jjg@842: # 0: type, 1: list of type duke@1: compiler.misc.no.unique.maximal.instance.exists=\ duke@1: no unique maximal instance exists for type variable {0} with upper bounds {1} jjg@842: duke@1: compiler.misc.no.unique.minimal.instance.exists=\ duke@1: no unique minimal instance exists for type variable {0} with lower bounds {1} jjg@842: mcimadamore@1087: # 0: type, 1: list of type mcimadamore@1087: compiler.misc.incompatible.upper.bounds=\ mcimadamore@1087: inference variable {0} has incompatible upper bounds {1} mcimadamore@1087: mcimadamore@1338: # 0: type, 1: list of type, 2: list of type mcimadamore@1338: compiler.misc.incompatible.eq.upper.bounds=\ mcimadamore@1338: inference variable {0} has incompatible bounds\n\ mcimadamore@1338: equality constraints: {1}\n\ mcimadamore@1338: upper bounds: {2} mcimadamore@1338: mcimadamore@1338: # 0: type, 1: list of type, 2: list of type mcimadamore@1338: compiler.misc.incompatible.eq.lower.bounds=\ mcimadamore@1338: inference variable {0} has incompatible bounds\n\ mcimadamore@1338: equality constraints: {1}\n\ mcimadamore@1338: lower bounds: {2} mcimadamore@1338: jjg@842: # 0: list of type, 1: type, 2: type mcimadamore@689: compiler.misc.infer.no.conforming.instance.exists=\ duke@1: no instance(s) of type variable(s) {0} exist so that {1} conforms to {2} jjg@842: mcimadamore@1296: # 0: list of type, 1: message segment mcimadamore@689: compiler.misc.infer.no.conforming.assignment.exists=\ mcimadamore@1296: cannot infer type-variable(s) {0}\n\ mcimadamore@1296: (argument mismatch; {1}) mcimadamore@1296: mcimadamore@1296: # 0: list of type mcimadamore@689: compiler.misc.infer.arg.length.mismatch=\ mcimadamore@1296: cannot infer type-variable(s) {0}\n\ mcimadamore@1296: (actual and formal argument lists differ in length) mcimadamore@1296: mcimadamore@1296: # 0: list of type, 1: message segment mcimadamore@1186: compiler.misc.infer.varargs.argument.mismatch=\ mcimadamore@1296: cannot infer type-variable(s) {0}\n\ mcimadamore@1296: (varargs mismatch; {1}) mcimadamore@1186: jjg@842: # 0: type, 1: list of type mcimadamore@1251: compiler.misc.inferred.do.not.conform.to.upper.bounds=\ mcimadamore@1251: inferred type does not conform to upper bound(s)\n\ mcimadamore@299: inferred: {0}\n\ mcimadamore@1251: upper bound(s): {1} mcimadamore@1251: mcimadamore@1251: # 0: type, 1: list of type mcimadamore@1251: compiler.misc.inferred.do.not.conform.to.lower.bounds=\ mcimadamore@1251: inferred type does not conform to lower bound(s)\n\ mcimadamore@1251: inferred: {0}\n\ mcimadamore@1251: lower bound(s): {1} mcimadamore@1251: mcimadamore@1251: # 0: type, 1: list of type mcimadamore@1251: compiler.misc.inferred.do.not.conform.to.eq.bounds=\ mcimadamore@1251: inferred type does not conform to equality constraint(s)\n\ mcimadamore@1251: inferred: {0}\n\ mcimadamore@1251: equality constraints(s): {1} jjg@842: jjg@842: # 0: symbol mcimadamore@537: compiler.misc.diamond=\ mcimadamore@537: {0}<> jjg@842: mcimadamore@881: # 0: type mcimadamore@881: compiler.misc.diamond.non.generic=\ mcimadamore@881: cannot use ''<>'' with non-generic class {0} mcimadamore@881: jjg@1136: # 0: unused mcimadamore@993: compiler.misc.diamond.and.explicit.params=\ mcimadamore@993: cannot use ''<>'' with explicit type parameters for constructor mcimadamore@993: vromero@2004: # 0: unused vromero@2004: compiler.misc.mref.infer.and.explicit.params=\ vromero@2004: cannot use raw constructor reference with explicit type parameters for constructor vromero@2004: jjg@842: # 0: type, 1: list of type mcimadamore@689: compiler.misc.explicit.param.do.not.conform.to.bounds=\ mcimadamore@689: explicit type argument {0} does not conform to declared bound(s) {1} mcimadamore@689: mcimadamore@689: compiler.misc.arg.length.mismatch=\ mcimadamore@689: actual and formal argument lists differ in length jjg@842: mcimadamore@1296: # 0: message segment mcimadamore@689: compiler.misc.no.conforming.assignment.exists=\ mcimadamore@1296: argument mismatch; {0} mcimadamore@1296: mcimadamore@1296: # 0: message segment mcimadamore@689: compiler.misc.varargs.argument.mismatch=\ mcimadamore@1296: varargs mismatch; {0} jjg@842: duke@1: ##### duke@1: jjg@1755: # 0: symbol or type, 1: file name ohrstrom@1384: compiler.warn.auxiliary.class.accessed.from.outside.of.its.source.file=\ ohrstrom@1384: auxiliary class {0} in {1} should not be accessed from outside its own source file ohrstrom@1384: duke@1: ## The first argument ({0}) is a "kindname". jjg@842: # 0: symbol kind, 1: symbol, 2: symbol duke@1: compiler.err.abstract.cant.be.accessed.directly=\ duke@1: abstract {0} {1} in {2} cannot be accessed directly duke@1: duke@1: ## The first argument ({0}) is a "kindname". jjg@842: # 0: symbol kind, 1: symbol duke@1: compiler.err.non-static.cant.be.ref=\ duke@1: non-static {0} {1} cannot be referenced from a static context duke@1: mcimadamore@1352: # 0: symbol kind, 1: symbol mcimadamore@1352: compiler.misc.non-static.cant.be.ref=\ mcimadamore@1352: non-static {0} {1} cannot be referenced from a static context mcimadamore@1352: mcimadamore@1610: # 0: symbol kind, 1: symbol mcimadamore@1610: compiler.misc.static.method.in.unbound.lookup=\ mcimadamore@1610: static {0} {1} found in unbound lookup mcimadamore@1610: duke@1: ## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list duke@1: ## of kindnames (the list should be identical to that provided in source. duke@1: compiler.err.unexpected.type=\ jjg@842: unexpected type\n\ jjg@842: required: {0}\n\ jjg@842: found: {1} duke@1: mcimadamore@1348: compiler.err.unexpected.lambda=\ mcimadamore@1348: lambda expression not expected here mcimadamore@1348: mcimadamore@1352: compiler.err.unexpected.mref=\ mcimadamore@1352: method reference not expected here mcimadamore@1352: mcimadamore@80: ## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.) mcimadamore@80: ## The second argument {1} is the non-resolved symbol mcimadamore@80: ## The third argument {2} is a list of type parameters (non-empty if {1} is a method) mcimadamore@80: ## The fourth argument {3} is a list of argument types (non-empty if {1} is a method) jjg@842: # 0: symbol kind, 1: name, 2: unused, 3: unused duke@1: compiler.err.cant.resolve=\ mcimadamore@80: cannot find symbol\n\ mcimadamore@80: symbol: {0} {1} duke@1: jjg@842: # 0: symbol kind, 1: name, 2: unused, 3: list of type mcimadamore@80: compiler.err.cant.resolve.args=\ mcimadamore@80: cannot find symbol\n\ mcimadamore@80: symbol: {0} {1}({3}) mcimadamore@80: jjg@842: # 0: symbol kind, 1: name, 2: list of type, 3: list of type mcimadamore@80: compiler.err.cant.resolve.args.params=\ mcimadamore@80: cannot find symbol\n\ mcimadamore@80: symbol: {0} <{2}>{1}({3}) mcimadamore@80: mcimadamore@80: ## arguments from {0} to {3} have the same meaning as above mcimadamore@829: ## The fifth argument {4} is a location subdiagnostic (see below) jjg@842: # 0: symbol kind, 1: name, 2: unused, 3: unused, 4: message segment duke@1: compiler.err.cant.resolve.location=\ mcimadamore@80: cannot find symbol\n\ mcimadamore@221: symbol: {0} {1}\n\ mcimadamore@829: location: {4} mcimadamore@80: jjg@842: # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment mcimadamore@80: compiler.err.cant.resolve.location.args=\ mcimadamore@80: cannot find symbol\n\ mcimadamore@221: symbol: {0} {1}({3})\n\ mcimadamore@829: location: {4} mcimadamore@80: jjg@842: # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment mcimadamore@80: compiler.err.cant.resolve.location.args.params=\ mcimadamore@80: cannot find symbol\n\ mcimadamore@221: symbol: {0} <{2}>{1}({3})\n\ mcimadamore@829: location: {4} mcimadamore@829: mcimadamore@1352: ### Following are replicated/used for method reference diagnostics mcimadamore@1352: mcimadamore@1352: # 0: symbol kind, 1: name, 2: unused, 3: list of type, 4: message segment mcimadamore@1352: compiler.misc.cant.resolve.location.args=\ mcimadamore@1352: cannot find symbol\n\ mcimadamore@1352: symbol: {0} {1}({3})\n\ mcimadamore@1352: location: {4} mcimadamore@1352: mcimadamore@1352: # 0: symbol kind, 1: name, 2: list of type, 3: list, 4: message segment mcimadamore@1352: compiler.misc.cant.resolve.location.args.params=\ mcimadamore@1352: cannot find symbol\n\ mcimadamore@1352: symbol: {0} <{2}>{1}({3})\n\ mcimadamore@1352: location: {4} mcimadamore@1352: mcimadamore@829: ##a location subdiagnostic is composed as follows: mcimadamore@829: ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.) mcimadamore@829: ## The second argument {1} is the location name mcimadamore@829: ## The third argument {2} is the location type (only when {1} is a variable name) mcimadamore@829: jjg@1136: # 0: symbol kind, 1: type or symbol, 2: unused mcimadamore@829: compiler.misc.location=\ mcimadamore@829: {0} {1} jjg@842: jjg@842: # 0: symbol kind, 1: symbol, 2: type mcimadamore@829: compiler.misc.location.1=\ mcimadamore@829: {0} {1} of type {2} duke@1: duke@1: ## The following are all possible string for "kindname". duke@1: ## They should be called whatever the JLS calls them after it been translated duke@1: ## to the appropriate language. duke@1: # compiler.misc.kindname.constructor=\ duke@1: # static member duke@1: compiler.misc.kindname.annotation=\ duke@1: @interface jjg@842: duke@1: compiler.misc.kindname.constructor=\ duke@1: constructor jjg@842: jjg@597: compiler.misc.kindname.enum=\ jjg@597: enum jjg@842: duke@1: compiler.misc.kindname.interface=\ duke@1: interface jjg@842: duke@1: compiler.misc.kindname.static=\ duke@1: static jjg@842: duke@1: compiler.misc.kindname.type.variable=\ duke@1: type variable jjg@842: duke@1: compiler.misc.kindname.type.variable.bound=\ duke@1: bound of type variable jjg@842: duke@1: compiler.misc.kindname.variable=\ duke@1: variable jjg@842: duke@1: compiler.misc.kindname.value=\ duke@1: value jjg@842: duke@1: compiler.misc.kindname.method=\ duke@1: method jjg@842: duke@1: compiler.misc.kindname.class=\ duke@1: class jjg@842: duke@1: compiler.misc.kindname.package=\ duke@1: package jjg@842: mcimadamore@1085: compiler.misc.kindname.static.init=\ mcimadamore@1085: static initializer mcimadamore@1085: mcimadamore@1085: compiler.misc.kindname.instance.init=\ mcimadamore@1085: instance initializer mcimadamore@1085: duke@1: ##### duke@1: mcimadamore@161: compiler.misc.no.args=\ mcimadamore@161: no arguments mcimadamore@161: jjg@842: # 0: message segment duke@1: compiler.err.override.static=\ mcimadamore@362: {0}\n\ mcimadamore@362: overriding method is static jjg@842: jjg@842: # 0: message segment, 1: set of modifier duke@1: compiler.err.override.meth=\ mcimadamore@362: {0}\n\ mcimadamore@362: overridden method is {1} duke@1: jjg@842: # 0: message segment, 1: type duke@1: compiler.err.override.meth.doesnt.throw=\ mcimadamore@362: {0}\n\ mcimadamore@362: overridden method does not throw {1} duke@1: duke@1: # In the following string {1} is a space separated list of Java Keywords, as duke@1: # they would have been declared in the source code jjg@842: # 0: message segment, 1: set of modifier duke@1: compiler.err.override.weaker.access=\ mcimadamore@362: {0}\n\ mcimadamore@362: attempting to assign weaker access privileges; was {1} duke@1: jjg@842: # 0: message segment, 1: type, 2: type mcimadamore@362: compiler.err.override.incompatible.ret=\ mcimadamore@362: {0}\n\ mcimadamore@362: return type {1} is not compatible with {2} duke@1: jjg@842: # 0: message segment, 1: type, 2: type mcimadamore@362: compiler.warn.override.unchecked.ret=\ jjg@612: {0}\n\ mcimadamore@362: return type requires unchecked conversion from {1} to {2} mcimadamore@362: jjg@842: # 0: message segment, 1: type mcimadamore@362: compiler.warn.override.unchecked.thrown=\ jjg@612: {0}\n\ mcimadamore@362: overridden method does not throw {1} duke@1: vromero@1620: # 0: symbol vromero@1588: compiler.warn.override.equals.but.not.hashcode=\ vromero@1607: Class {0} overrides equals, but neither it nor any superclass overrides hashCode method vromero@1588: duke@1: ## The following are all possible strings for the first argument ({0}) of the duke@1: ## above strings. jjg@842: # 0: symbol, 1: symbol, 2: symbol, 3: symbol duke@1: compiler.misc.cant.override=\ duke@1: {0} in {1} cannot override {2} in {3} jjg@842: jjg@842: # 0: symbol, 1: symbol, 2: symbol, 3: symbol duke@1: compiler.misc.cant.implement=\ duke@1: {0} in {1} cannot implement {2} in {3} jjg@842: jjg@842: # 0: symbol, 1: symbol, 2: symbol, 3: symbol duke@1: compiler.misc.clashes.with=\ duke@1: {0} in {1} clashes with {2} in {3} jjg@842: jjg@842: # 0: symbol, 1: symbol, 2: symbol, 3: symbol duke@1: compiler.misc.unchecked.override=\ duke@1: {0} in {1} overrides {2} in {3} jjg@842: jjg@842: # 0: symbol, 1: symbol, 2: symbol, 3: symbol duke@1: compiler.misc.unchecked.implement=\ duke@1: {0} in {1} implements {2} in {3} jjg@842: jjg@842: # 0: symbol, 1: symbol, 2: symbol, 3: symbol duke@1: compiler.misc.unchecked.clash.with=\ duke@1: {0} in {1} overrides {2} in {3} jjg@842: jjg@842: # 0: symbol, 1: symbol, 2: symbol, 3: symbol duke@1: compiler.misc.varargs.override=\ duke@1: {0} in {1} overrides {2} in {3} jjg@842: jjg@842: # 0: symbol, 1: symbol, 2: symbol, 3: symbol duke@1: compiler.misc.varargs.implement=\ duke@1: {0} in {1} implements {2} in {3} jjg@842: jjg@842: # 0: symbol, 1: symbol, 2: symbol, 3: symbol duke@1: compiler.misc.varargs.clash.with=\ duke@1: {0} in {1} overrides {2} in {3} jjg@842: jjg@1136: # 0: unused mcimadamore@914: compiler.misc.diamond.and.anon.class=\ mcimadamore@914: cannot use ''<>'' with anonymous inner classes duke@1: jjg@842: # 0: symbol kind, 1: symbol, 2: symbol, 3: message segment mcimadamore@689: compiler.misc.inapplicable.method=\ mcimadamore@689: {0} {1}.{2} is not applicable\n\ mcimadamore@689: ({3}) mcimadamore@689: duke@1: ######################################## duke@1: # Diagnostics for language feature changes duke@1: ######################################## jjg@842: # 0: string duke@1: compiler.err.unsupported.fp.lit=\ jjg@409: hexadecimal floating point literals are not supported in -source {0}\n\ jjg@842: (use -source 5 or higher to enable hexadecimal floating point literals) jjg@409: jjg@842: # 0: string jjg@409: compiler.err.unsupported.binary.lit=\ jjg@409: binary literals are not supported in -source {0}\n\ jjg@842: (use -source 7 or higher to enable binary literals) jjg@409: jjg@842: # 0: string jjg@409: compiler.err.unsupported.underscore.lit=\ jjg@409: underscores in literals are not supported in -source {0}\n\ jjg@842: (use -source 7 or higher to enable underscores in literals) duke@1: jjg@842: # 0: string mcimadamore@743: compiler.err.try.with.resources.not.supported.in.source=\ mcimadamore@743: try-with-resources is not supported in -source {0}\n\ jjg@842: (use -source 7 or higher to enable try-with-resources) darcy@609: duke@1: compiler.warn.enum.as.identifier=\ duke@1: as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ jjg@842: (use -source 5 or higher to use ''enum'' as a keyword) duke@1: duke@1: compiler.warn.assert.as.identifier=\ duke@1: as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ jjg@842: (use -source 1.4 or higher to use ''assert'' as a keyword) duke@1: mcimadamore@1503: compiler.warn.underscore.as.identifier=\ mcimadamore@1503: ''_'' used as an identifier\n\ vromero@1818: (use of ''_'' as an identifier might not be supported in releases after Java SE 8) mcimadamore@1503: vromero@2080: compiler.err.underscore.as.identifier.in.lambda=\ vromero@2080: ''_'' used as an identifier\n\ vromero@2080: (use of ''_'' as an identifier is forbidden for lambda parameters) vromero@2080: duke@1: compiler.err.enum.as.identifier=\ duke@1: as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ jjg@842: (use -source 1.4 or lower to use ''enum'' as an identifier) duke@1: duke@1: compiler.err.assert.as.identifier=\ duke@1: as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ jjg@842: (use -source 1.3 or lower to use ''assert'' as an identifier) duke@1: jjg@1521: # TODO 308: make a better error message jjg@1521: compiler.err.this.as.identifier=\ jjg@1521: as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter jjg@1521: jjg@1755: # 0: symbol jjg@1755: compiler.err.receiver.parameter.not.applicable.constructor.toplevel.class=\ jjg@1755: receiver parameter not applicable for constructor of top-level class jjg@1755: jjg@1521: # TODO 308: make a better error message jjg@2134: # 0: symbol jjg@2134: compiler.err.cant.type.annotate.scoping.1=\ jjg@2134: scoping construct cannot be annotated with type-use annotation: {0} jjg@1755: jjg@1521: # TODO 308: make a better error message jjg@2134: # 0: list of symbol jjg@2134: compiler.err.cant.type.annotate.scoping=\ jjg@2134: scoping construct cannot be annotated with type-use annotations: {0} jjg@1521: jjg@1755: # 0: type, 1: type jjg@1755: compiler.err.incorrect.receiver.name=\ jjg@1755: the receiver name does not match the enclosing class type\n\ jjg@1755: required: {0}\n\ jjg@1755: found: {1} jjg@1755: jjg@1755: # 0: type, 1: type jjg@1521: compiler.err.incorrect.receiver.type=\ jjg@1755: the receiver type does not match the enclosing class type\n\ jjg@1755: required: {0}\n\ jjg@1755: found: {1} jjg@1755: jjg@1755: # 0: type, 1: type jjg@1755: compiler.err.incorrect.constructor.receiver.type=\ jjg@1755: the receiver type does not match the enclosing outer class type\n\ jjg@1755: required: {0}\n\ jjg@1755: found: {1} jjg@1755: jjg@1755: # 0: type, 1: type jjg@1755: compiler.err.incorrect.constructor.receiver.name=\ jjg@1755: the receiver name does not match the enclosing outer class type\n\ jjg@1755: required: {0}\n\ jjg@1755: found: {1} jjg@1521: jjg@1521: compiler.err.no.annotations.on.dot.class=\ jjg@1521: no annotations are allowed in the type of a class literal jjg@1521: jjg@842: # 0: string duke@1: compiler.err.generics.not.supported.in.source=\ duke@1: generics are not supported in -source {0}\n\ jjg@842: (use -source 5 or higher to enable generics) duke@1: jjg@842: # 0: string duke@1: compiler.err.varargs.not.supported.in.source=\ duke@1: variable-arity methods are not supported in -source {0}\n\ jjg@842: (use -source 5 or higher to enable variable-arity methods) duke@1: jjg@842: # 0: string duke@1: compiler.err.annotations.not.supported.in.source=\ duke@1: annotations are not supported in -source {0}\n\ jjg@842: (use -source 5 or higher to enable annotations) duke@1: jjg@1521: # 0: string jjg@1521: compiler.err.type.annotations.not.supported.in.source=\ jjg@1521: type annotations are not supported in -source {0}\n\ jjg@1521: (use -source 8 or higher to enable type annotations) jjg@308: jjg@842: # 0: string jlahoda@2355: compiler.err.annotations.after.type.params.not.supported.in.source=\ jlahoda@2355: annotations after method type parameters are not supported in -source {0}\n\ jlahoda@2355: (use -source 8 or higher to enable annotations after method type parameters) jlahoda@2355: jlahoda@2355: # 0: string emc@2102: compiler.err.repeatable.annotations.not.supported.in.source=\ emc@2102: repeated annotations are not supported in -source {0}\n\ emc@2102: (use -source 8 or higher to enable repeated annotations) emc@2102: emc@2102: # 0: string duke@1: compiler.err.foreach.not.supported.in.source=\ emc@2102: enhanced for loops are not supported in -source {0}\n\ jjg@842: (use -source 5 or higher to enable for-each loops) duke@1: jjg@842: # 0: string duke@1: compiler.err.static.import.not.supported.in.source=\ duke@1: static import declarations are not supported in -source {0}\n\ jjg@842: (use -source 5 or higher to enable static import declarations) duke@1: jjg@842: # 0: string duke@1: compiler.err.enums.not.supported.in.source=\ duke@1: enums are not supported in -source {0}\n\ jjg@842: (use -source 5 or higher to enable enums) mcimadamore@288: jjg@842: # 0: string jjg@597: compiler.err.diamond.not.supported.in.source=\ jjg@597: diamond operator is not supported in -source {0}\n\ jjg@842: (use -source 7 or higher to enable diamond operator) jjg@597: jjg@842: # 0: string mcimadamore@550: compiler.err.multicatch.not.supported.in.source=\ mcimadamore@550: multi-catch statement is not supported in -source {0}\n\ jjg@842: (use -source 7 or higher to enable multi-catch statement) mcimadamore@550: jjg@842: # 0: string darcy@430: compiler.err.string.switch.not.supported.in.source=\ darcy@430: strings in switch are not supported in -source {0}\n\ jjg@842: (use -source 7 or higher to enable strings in switch) darcy@430: mcimadamore@1144: # 0: string mcimadamore@1144: compiler.err.lambda.not.supported.in.source=\ mcimadamore@1144: lambda expressions are not supported in -source {0}\n\ mcimadamore@1144: (use -source 8 or higher to enable lambda expressions) mcimadamore@1144: mcimadamore@1145: # 0: string mcimadamore@1145: compiler.err.method.references.not.supported.in.source=\ mcimadamore@1145: method references are not supported in -source {0}\n\ mcimadamore@1145: (use -source 8 or higher to enable method references) mcimadamore@1145: mcimadamore@1366: # 0: string mcimadamore@1366: compiler.err.default.methods.not.supported.in.source=\ mcimadamore@1366: default methods are not supported in -source {0}\n\ mcimadamore@1366: (use -source 8 or higher to enable default methods) mcimadamore@1366: mcimadamore@1436: # 0: string mcimadamore@1436: compiler.err.intersection.types.in.cast.not.supported.in.source=\ mcimadamore@1436: intersection types in cast are not supported in -source {0}\n\ mcimadamore@1436: (use -source 8 or higher to enable default methods) mcimadamore@1436: mcimadamore@1513: # 0: string mcimadamore@1513: compiler.err.static.intf.methods.not.supported.in.source=\ mcimadamore@1513: static interface methods are not supported in -source {0}\n\ mcimadamore@1513: (use -source 8 or higher to enable static interface methods) mcimadamore@1513: dlsmith@2418: # 0: string dlsmith@2418: compiler.err.static.intf.method.invoke.not.supported.in.source=\ dlsmith@2418: static interface method invocations are not supported in -source {0}\n\ dlsmith@2418: (use -source 8 or higher to enable static interface method invocations) dlsmith@2418: mcimadamore@288: ######################################## mcimadamore@1114: # Diagnostics for verbose resolution mcimadamore@1114: # used by Resolve (debug only) mcimadamore@1114: ######################################## mcimadamore@1114: mcimadamore@1114: # 0: number, 1: symbol, 2: unused mcimadamore@1114: compiler.misc.applicable.method.found=\ mcimadamore@1114: #{0} applicable method found: {1} mcimadamore@1114: mcimadamore@1114: # 0: number, 1: symbol, 2: message segment mcimadamore@1114: compiler.misc.applicable.method.found.1=\ mcimadamore@1114: #{0} applicable method found: {1}\n\ mcimadamore@1114: ({2}) mcimadamore@1114: mcimadamore@1114: # 0: number, 1: symbol, 2: message segment mcimadamore@1114: compiler.misc.not.applicable.method.found=\ mcimadamore@1114: #{0} not applicable method found: {1}\n\ mcimadamore@1114: ({2}) mcimadamore@1114: mcimadamore@1114: # 0: type mcimadamore@1114: compiler.misc.partial.inst.sig=\ mcimadamore@1114: partially instantiated to: {0} mcimadamore@1114: mcimadamore@1114: # 0: name, 1: symbol, 2: number, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment mcimadamore@1114: compiler.note.verbose.resolve.multi=\ mcimadamore@1114: resolving method {0} in type {1} to candidate {2}\n\ mcimadamore@1114: phase: {3}\n\ mcimadamore@1114: with actuals: {4}\n\ mcimadamore@1114: with type-args: {5}\n\ mcimadamore@1114: candidates: mcimadamore@1114: mcimadamore@1114: # 0: name, 1: symbol, 2: unused, 3: MethodResolutionPhase, 4: list of type or message segment, 5: list of type or message segment mcimadamore@1114: compiler.note.verbose.resolve.multi.1=\ mcimadamore@1114: erroneous resolution for method {0} in type {1}\n\ mcimadamore@1114: phase: {3}\n\ mcimadamore@1114: with actuals: {4}\n\ mcimadamore@1114: with type-args: {5}\n\ mcimadamore@1114: candidates: mcimadamore@1114: mcimadamore@1114: # 0: symbol, 1: type, 2: type mcimadamore@1114: compiler.note.deferred.method.inst=\ mcimadamore@1114: Deferred instantiation of method {0}\n\ mcimadamore@1114: instantiated signature: {1}\n\ mcimadamore@1114: target-type: {2} mcimadamore@1114: mcimadamore@1114: ######################################## mcimadamore@288: # Diagnostics for where clause implementation mcimadamore@288: # used by the RichDiagnosticFormatter. mcimadamore@288: ######################################## mcimadamore@288: mcimadamore@288: compiler.misc.type.null=\ mcimadamore@288: mcimadamore@288: mcimadamore@288: # X#n (where n is an int id) is disambiguated tvar name jjg@842: # 0: name, 1: number mcimadamore@288: compiler.misc.type.var=\ mcimadamore@288: {0}#{1} mcimadamore@288: mcimadamore@288: # CAP#n (where n is an int id) is an abbreviation for 'captured type' jjg@842: # 0: number mcimadamore@288: compiler.misc.captured.type=\ mcimadamore@288: CAP#{0} mcimadamore@288: mcimadamore@288: # (where n is an int id) is an abbreviation for 'intersection type' jjg@842: # 0: number mcimadamore@288: compiler.misc.intersection.type=\ mcimadamore@288: INT#{0} mcimadamore@288: mcimadamore@288: # where clause for captured type: contains upper ('extends {1}') and lower mcimadamore@288: # ('super {2}') bound along with the wildcard that generated this captured type ({3}) jjg@842: # 0: type, 1: type, 2: type, 3: type mcimadamore@288: compiler.misc.where.captured=\ mcimadamore@288: {0} extends {1} super: {2} from capture of {3} mcimadamore@288: mcimadamore@288: # compact where clause for captured type: contains upper ('extends {1}') along mcimadamore@288: # with the wildcard that generated this captured type ({3}) jjg@842: # 0: type, 1: type, 2: unused, 3: type mcimadamore@288: compiler.misc.where.captured.1=\ mcimadamore@288: {0} extends {1} from capture of {3} mcimadamore@288: mcimadamore@288: # where clause for type variable: contains upper bound(s) ('extends {1}') along with mcimadamore@288: # the kindname ({2}) and location ({3}) in which the typevar has been declared jjg@842: # 0: type, 1: list of type, 2: symbol kind, 3: symbol mcimadamore@288: compiler.misc.where.typevar=\ mcimadamore@288: {0} extends {1} declared in {2} {3} mcimadamore@288: mcimadamore@288: # compact where clause for type variable: contains the kindname ({2}) and location ({3}) mcimadamore@288: # in which the typevar has been declared mcimadamore@1251: # 0: type, 1: list of type, 2: symbol kind, 3: symbol mcimadamore@288: compiler.misc.where.typevar.1=\ mcimadamore@288: {0} declared in {2} {3} mcimadamore@288: mcimadamore@1251: # where clause for fresh type variable: contains upper bound(s) ('extends {1}'). mcimadamore@1251: # Since a fresh type-variable is synthetic - there's no location/kindname here. mcimadamore@1251: # 0: type, 1: list of type mcimadamore@1251: compiler.misc.where.fresh.typevar=\ mcimadamore@1251: {0} extends {1} mcimadamore@1251: mcimadamore@288: # where clause for type variable: contains all the upper bound(s) ('extends {1}') mcimadamore@288: # of this intersection type jjg@842: # 0: type, 1: list of type mcimadamore@288: compiler.misc.where.intersection=\ mcimadamore@288: {0} extends {1} mcimadamore@288: mcimadamore@288: ### Where clause headers ### mcimadamore@288: compiler.misc.where.description.captured=\ mcimadamore@288: where {0} is a fresh type-variable: jjg@842: jjg@842: # 0: set of type mcimadamore@288: compiler.misc.where.description.typevar=\ mcimadamore@288: where {0} is a type-variable: jjg@842: jjg@842: # 0: set of type mcimadamore@288: compiler.misc.where.description.intersection=\ mcimadamore@288: where {0} is an intersection type: jjg@842: jjg@842: # 0: set of type mcimadamore@288: compiler.misc.where.description.captured.1=\ mcimadamore@288: where {0} are fresh type-variables: jjg@842: jjg@842: # 0: set of type mcimadamore@288: compiler.misc.where.description.typevar.1=\ mcimadamore@288: where {0} are type-variables: jjg@842: mcimadamore@288: compiler.misc.where.description.intersection.1=\ mcimadamore@288: where {0} are intersection types: mcimadamore@288: jjg@1409: ### jjg@1409: # errors related to doc comments jjg@1409: jjg@1409: compiler.err.dc.bad.entity=\ jjg@1409: bad HTML entity jjg@1409: jjg@1409: compiler.err.dc.bad.gt=\ jjg@1409: bad use of ''>'' jjg@1409: jjg@1409: compiler.err.dc.bad.inline.tag=\ jjg@1409: incorrect use of inline tag jjg@1409: jjg@1409: compiler.err.dc.identifier.expected=\ jjg@1409: identifier expected jjg@1409: jjg@1409: compiler.err.dc.malformed.html=\ jjg@1409: malformed HTML jjg@1409: jjg@1409: compiler.err.dc.missing.semicolon=\ jjg@1409: semicolon missing jjg@1409: jjg@1455: compiler.err.dc.no.content=\ jjg@1455: no content jjg@1455: jjg@1409: compiler.err.dc.no.tag.name=\ jjg@1409: no tag name after '@' jjg@1409: jjg@1409: compiler.err.dc.gt.expected=\ jjg@1409: ''>'' expected jjg@1409: jjg@1409: compiler.err.dc.ref.bad.parens=\ jjg@1409: '')'' missing in reference jjg@1409: jjg@1409: compiler.err.dc.ref.syntax.error=\ jjg@1409: syntax error in reference jjg@1409: jjg@1409: compiler.err.dc.ref.unexpected.input=\ jjg@1409: unexpected text jjg@1409: jjg@1409: compiler.err.dc.unexpected.content=\ jjg@1409: unexpected content jjg@1409: jjg@1409: compiler.err.dc.unterminated.inline.tag=\ jjg@1409: unterminated inline tag jjg@1409: jjg@1409: compiler.err.dc.unterminated.signature=\ jjg@1409: unterminated signature jjg@1409: jjg@1409: compiler.err.dc.unterminated.string=\ jjg@1409: unterminated string jjg@1409: jjg@1409: