author | mcimadamore |
Thu, 10 Jun 2010 09:29:23 +0100 | |
changeset 5846 | 6df0e6bcb388 |
parent 5520 | 86e4b9a9da40 |
child 5848 | c5a4ce47e780 |
permissions | -rw-r--r-- |
10 | 1 |
# |
5520 | 2 |
# Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved. |
10 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
5520 | 7 |
# published by the Free Software Foundation. Oracle designates this |
10 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5520 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
10 | 10 |
# |
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
5520 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
10 | 24 |
# |
25 |
||
26 |
## |
|
27 |
## errors |
|
28 |
## |
|
29 |
||
30 |
compiler.err.abstract.cant.be.instantiated=\ |
|
31 |
{0} is abstract; cannot be instantiated |
|
32 |
compiler.err.abstract.meth.cant.have.body=\ |
|
33 |
abstract methods cannot have a body |
|
34 |
compiler.err.already.annotated=\ |
|
35 |
{0} {1} has already been annotated |
|
36 |
compiler.err.already.defined=\ |
|
37 |
{0} is already defined in {1} |
|
38 |
compiler.err.already.defined.single.import=\ |
|
39 |
{0} is already defined in a single-type import |
|
40 |
compiler.err.already.defined.static.single.import=\ |
|
41 |
{0} is already defined in a static single-type import |
|
42 |
compiler.err.already.defined.this.unit=\ |
|
43 |
{0} is already defined in this compilation unit |
|
44 |
compiler.err.annotation.missing.default.value=\ |
|
45 |
annotation {0} is missing {1} |
|
46 |
compiler.err.annotation.not.valid.for.type=\ |
|
47 |
annotation not valid for a value of type {0} |
|
48 |
compiler.err.annotation.type.not.applicable=\ |
|
49 |
annotation type not applicable to this kind of declaration |
|
50 |
compiler.err.annotation.value.must.be.annotation=\ |
|
51 |
annotation value must be an annotation |
|
52 |
compiler.err.annotation.value.must.be.class.literal=\ |
|
53 |
annotation value must be a class literal |
|
54 |
compiler.err.annotation.value.must.be.name.value=\ |
|
55 |
annotation values must be of the form ''name=value'' |
|
56 |
compiler.err.annotation.value.not.allowable.type=\ |
|
57 |
annotation value not of an allowable type |
|
58 |
compiler.err.anon.class.impl.intf.no.args=\ |
|
59 |
anonymous class implements interface; cannot have arguments |
|
60 |
compiler.err.anon.class.impl.intf.no.typeargs=\ |
|
61 |
anonymous class implements interface; cannot have type arguments |
|
62 |
compiler.err.anon.class.impl.intf.no.qual.for.new=\ |
|
63 |
anonymous class implements interface; cannot have qualifier for new |
|
64 |
compiler.err.array.and.varargs=\ |
|
65 |
cannot declare both {0} and {1} in {2} |
|
66 |
compiler.err.array.dimension.missing=\ |
|
67 |
array dimension missing |
|
68 |
compiler.err.array.req.but.found=\ |
|
69 |
array required, but {0} found |
|
70 |
||
71 |
compiler.err.assignment.from.super-bound=\ |
|
72 |
assigning from wildcard {0} |
|
73 |
compiler.err.assignment.to.extends-bound=\ |
|
74 |
assigning to wildcard {0} |
|
75 |
compiler.err.attribute.value.must.be.constant=\ |
|
76 |
attribute value must be constant |
|
77 |
||
78 |
compiler.err.break.outside.switch.loop=\ |
|
79 |
break outside switch or loop |
|
80 |
||
81 |
compiler.err.call.must.be.first.stmt.in.ctor=\ |
|
82 |
call to {0} must be first statement in constructor |
|
83 |
compiler.err.cant.apply.symbol=\ |
|
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
84 |
{0} {1} in {4} {5} cannot be applied to given types\n\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
85 |
required: {2}\n\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
86 |
found: {3} |
3140
15a274b13051
6638712: Inference with wildcard types causes selection of inapplicable method
mcimadamore
parents:
2984
diff
changeset
|
87 |
compiler.err.cant.apply.symbol.1=\ |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
88 |
{0} {1} in {4} {5} cannot be applied to given types;\n\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
89 |
required: {2}\n\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
90 |
found: {3}\n\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
91 |
reason: {6} |
10 | 92 |
compiler.err.cant.assign.val.to.final.var=\ |
93 |
cannot assign a value to final variable {0} |
|
94 |
compiler.err.cant.deref=\ |
|
95 |
{0} cannot be dereferenced |
|
96 |
compiler.err.cant.extend.intf.annotation=\ |
|
97 |
''extends'' not allowed for @interfaces |
|
98 |
compiler.err.cant.inherit.from.final=\ |
|
99 |
cannot inherit from final {0} |
|
100 |
compiler.err.cant.ref.before.ctor.called=\ |
|
101 |
cannot reference {0} before supertype constructor has been called |
|
102 |
compiler.err.cant.ret.val.from.meth.decl.void=\ |
|
103 |
cannot return a value from method whose result type is void |
|
104 |
compiler.err.cant.select.static.class.from.param.type=\ |
|
105 |
cannot select a static class from a parameterized type |
|
106 |
compiler.err.cant.inherit.diff.arg=\ |
|
107 |
{0} cannot be inherited with different arguments: <{1}> and <{2}> |
|
108 |
compiler.err.catch.without.try=\ |
|
109 |
''catch'' without ''try'' |
|
110 |
compiler.err.clash.with.pkg.of.same.name=\ |
|
111 |
{0} clashes with package of same name |
|
112 |
compiler.err.const.expr.req=\ |
|
113 |
constant expression required |
|
114 |
compiler.err.enum.const.req=\ |
|
115 |
unqualified enumeration constant name required |
|
116 |
compiler.err.cont.outside.loop=\ |
|
117 |
continue outside of loop |
|
118 |
compiler.err.cyclic.inheritance=\ |
|
119 |
cyclic inheritance involving {0} |
|
120 |
compiler.err.cyclic.annotation.element=\ |
|
121 |
cyclic annotation element type |
|
122 |
compiler.err.call.to.super.not.allowed.in.enum.ctor=\ |
|
123 |
call to super not allowed in enum constructor |
|
124 |
compiler.err.no.superclass=\ |
|
125 |
{0} has no superclass |
|
126 |
||
127 |
compiler.err.concrete.inheritance.conflict=\ |
|
128 |
methods {0} from {1} and {2} from {3} are inherited with the same signature |
|
129 |
||
130 |
compiler.err.default.allowed.in.intf.annotation.member=\ |
|
131 |
default value only allowed in an @interface member |
|
132 |
compiler.err.doesnt.exist=\ |
|
133 |
package {0} does not exist |
|
134 |
compiler.err.duplicate.annotation=\ |
|
135 |
duplicate annotation |
|
136 |
compiler.err.duplicate.annotation.member.value=\ |
|
137 |
duplicate annotation member value {0} in {1} |
|
138 |
compiler.err.duplicate.class=\ |
|
139 |
duplicate class: {0} |
|
140 |
compiler.err.duplicate.case.label=\ |
|
141 |
duplicate case label |
|
142 |
compiler.err.duplicate.default.label=\ |
|
143 |
duplicate default label |
|
144 |
||
145 |
compiler.err.else.without.if=\ |
|
146 |
''else'' without ''if'' |
|
2723
b659ca23d5f5
6829189: Java programming with JSR 292 needs language support
jrose
parents:
2223
diff
changeset
|
147 |
compiler.err.empty.bytecode.ident=\ |
b659ca23d5f5
6829189: Java programming with JSR 292 needs language support
jrose
parents:
2223
diff
changeset
|
148 |
empty bytecode identifier |
10 | 149 |
compiler.err.empty.char.lit=\ |
150 |
empty character literal |
|
151 |
compiler.err.encl.class.required=\ |
|
152 |
an enclosing instance that contains {0} is required |
|
153 |
compiler.err.enum.annotation.must.be.enum.constant=\ |
|
154 |
an enum annotation value must be an enum constant |
|
155 |
||
156 |
compiler.err.enum.cant.be.instantiated=\ |
|
157 |
enum types may not be instantiated |
|
158 |
compiler.err.enum.label.must.be.unqualified.enum=\ |
|
159 |
an enum switch case label must be the unqualified name of an enumeration constant |
|
160 |
compiler.err.enum.no.subclassing=\ |
|
161 |
classes cannot directly extend java.lang.Enum |
|
162 |
compiler.err.enum.types.not.extensible=\ |
|
163 |
enum types are not extensible |
|
164 |
compiler.err.enum.no.finalize=\ |
|
165 |
enums cannot have finalize methods |
|
166 |
compiler.err.error.reading.file=\ |
|
167 |
error reading {0}; {1} |
|
168 |
compiler.err.except.already.caught=\ |
|
169 |
exception {0} has already been caught |
|
170 |
compiler.err.except.never.thrown.in.try=\ |
|
171 |
exception {0} is never thrown in body of corresponding try statement |
|
172 |
||
173 |
compiler.err.final.parameter.may.not.be.assigned=\ |
|
174 |
final parameter {0} may not be assigned |
|
5492
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
5321
diff
changeset
|
175 |
compiler.err.multicatch.parameter.may.not.be.assigned=\ |
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
5321
diff
changeset
|
176 |
multi-catch parameter {0} may not be assigned |
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
5321
diff
changeset
|
177 |
compiler.err.multicatch.param.must.be.final=\ |
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
5321
diff
changeset
|
178 |
multi-catch parameter {0} must be final |
10 | 179 |
compiler.err.finally.without.try=\ |
180 |
''finally'' without ''try'' |
|
181 |
compiler.err.foreach.not.applicable.to.type=\ |
|
182 |
foreach not applicable to expression type |
|
183 |
compiler.err.fp.number.too.large=\ |
|
184 |
floating point number too large |
|
185 |
compiler.err.fp.number.too.small=\ |
|
186 |
floating point number too small |
|
187 |
||
188 |
compiler.err.generic.array.creation=\ |
|
189 |
generic array creation |
|
190 |
compiler.err.generic.throwable=\ |
|
191 |
a generic class may not extend java.lang.Throwable |
|
192 |
||
193 |
compiler.err.icls.cant.have.static.decl=\ |
|
194 |
inner classes cannot have static declarations |
|
2723
b659ca23d5f5
6829189: Java programming with JSR 292 needs language support
jrose
parents:
2223
diff
changeset
|
195 |
compiler.err.illegal.bytecode.ident.char=\ |
b659ca23d5f5
6829189: Java programming with JSR 292 needs language support
jrose
parents:
2223
diff
changeset
|
196 |
illegal bytecode identifier character: \\{0} |
10 | 197 |
compiler.err.illegal.char=\ |
198 |
illegal character: \\{0} |
|
199 |
compiler.err.illegal.char.for.encoding=\ |
|
200 |
unmappable character for encoding {0} |
|
201 |
compiler.err.illegal.combination.of.modifiers=\ |
|
202 |
illegal combination of modifiers: {0} and {1} |
|
203 |
compiler.err.illegal.enum.static.ref=\ |
|
204 |
illegal reference to static field from initializer |
|
205 |
compiler.err.illegal.esc.char=\ |
|
206 |
illegal escape character |
|
207 |
compiler.err.illegal.forward.ref=\ |
|
208 |
illegal forward reference |
|
209 |
compiler.warn.forward.ref=\ |
|
210 |
reference to variable ''{0}'' before it has been initialized |
|
1045
56f6e84f7825
6676362: Spurious forward reference error with final var + instance variable initializer
mcimadamore
parents:
939
diff
changeset
|
211 |
compiler.err.illegal.self.ref=\ |
56f6e84f7825
6676362: Spurious forward reference error with final var + instance variable initializer
mcimadamore
parents:
939
diff
changeset
|
212 |
self-reference in initializer |
56f6e84f7825
6676362: Spurious forward reference error with final var + instance variable initializer
mcimadamore
parents:
939
diff
changeset
|
213 |
compiler.warn.self.ref=\ |
56f6e84f7825
6676362: Spurious forward reference error with final var + instance variable initializer
mcimadamore
parents:
939
diff
changeset
|
214 |
self-reference in initializer of variable ''{0}'' |
10 | 215 |
compiler.err.illegal.generic.type.for.instof=\ |
216 |
illegal generic type for instanceof |
|
217 |
compiler.err.illegal.initializer.for.type=\ |
|
218 |
illegal initializer for {0} |
|
219 |
compiler.err.illegal.line.end.in.char.lit=\ |
|
220 |
illegal line end in character literal |
|
221 |
compiler.err.illegal.nonascii.digit=\ |
|
222 |
illegal non-ASCII digit |
|
3895 | 223 |
compiler.err.illegal.underscore=\ |
224 |
illegal underscore |
|
10 | 225 |
compiler.err.illegal.qual.not.icls=\ |
226 |
illegal qualifier; {0} is not an inner class |
|
227 |
compiler.err.illegal.start.of.expr=\ |
|
228 |
illegal start of expression |
|
229 |
compiler.err.illegal.start.of.type=\ |
|
230 |
illegal start of type |
|
231 |
compiler.err.illegal.unicode.esc=\ |
|
232 |
illegal unicode escape |
|
233 |
compiler.err.import.requires.canonical=\ |
|
234 |
import requires canonical name for {0} |
|
235 |
compiler.err.improperly.formed.type.param.missing=\ |
|
236 |
improperly formed type, some parameters are missing |
|
237 |
compiler.err.improperly.formed.type.inner.raw.param=\ |
|
238 |
improperly formed type, type parameters given on a raw type |
|
239 |
compiler.err.incomparable.types=\ |
|
240 |
incomparable types: {0} and {1} |
|
241 |
compiler.err.int.number.too.large=\ |
|
242 |
integer number too large: {0} |
|
243 |
compiler.err.internal.error.cant.instantiate=\ |
|
244 |
internal error; cannot instantiate {0} at {1} to ({2}) |
|
245 |
compiler.err.intf.annotation.members.cant.have.params=\ |
|
246 |
@interface members may not have parameters |
|
247 |
compiler.err.intf.annotation.cant.have.type.params=\ |
|
248 |
@interface may not have type parameters |
|
249 |
compiler.err.intf.annotation.members.cant.have.type.params=\ |
|
250 |
@interface members may not have type parameters |
|
251 |
compiler.err.intf.annotation.member.clash=\ |
|
252 |
@interface member clashes with method ''{0}'' in {1} |
|
253 |
compiler.err.intf.expected.here=\ |
|
254 |
interface expected here |
|
255 |
compiler.err.intf.meth.cant.have.body=\ |
|
256 |
interface methods cannot have body |
|
257 |
compiler.err.invalid.annotation.member.type=\ |
|
258 |
invalid type for annotation member |
|
4072
70eaf9773f81
6891079: Compiler allows invalid binary literals 0b and oBL
jjg
parents:
3895
diff
changeset
|
259 |
compiler.err.invalid.binary.number=\ |
70eaf9773f81
6891079: Compiler allows invalid binary literals 0b and oBL
jjg
parents:
3895
diff
changeset
|
260 |
binary numbers must contain at least one binary digit |
10 | 261 |
compiler.err.invalid.hex.number=\ |
262 |
hexadecimal numbers must contain at least one hexadecimal digit |
|
263 |
compiler.err.invalid.meth.decl.ret.type.req=\ |
|
264 |
invalid method declaration; return type required |
|
265 |
||
266 |
compiler.err.label.already.in.use=\ |
|
267 |
label {0} already in use |
|
268 |
compiler.err.local.var.accessed.from.icls.needs.final=\ |
|
269 |
local variable {0} is accessed from within inner class; needs to be declared final |
|
270 |
compiler.err.local.enum=\ |
|
271 |
enum types must not be local |
|
272 |
compiler.err.cannot.create.array.with.type.arguments=\ |
|
273 |
cannot create array with type arguments |
|
274 |
||
275 |
# |
|
276 |
# limits. We don't give the limits in the diagnostic because we expect |
|
277 |
# them to change, yet we want to use the same diagnostic. These are all |
|
278 |
# detected during code generation. |
|
279 |
# |
|
280 |
compiler.err.limit.code=\ |
|
281 |
code too large |
|
282 |
compiler.err.limit.code.too.large.for.try.stmt=\ |
|
283 |
code too large for try statement |
|
284 |
compiler.err.limit.dimensions=\ |
|
285 |
array type has too many dimensions |
|
286 |
compiler.err.limit.locals=\ |
|
287 |
too many local variables |
|
288 |
compiler.err.limit.parameters=\ |
|
289 |
too many parameters |
|
290 |
compiler.err.limit.pool=\ |
|
291 |
too many constants |
|
292 |
compiler.err.limit.pool.in.class=\ |
|
293 |
too many constants in class {0} |
|
294 |
compiler.err.limit.stack=\ |
|
295 |
code requires too much stack |
|
296 |
compiler.err.limit.string=\ |
|
297 |
constant string too long |
|
298 |
compiler.err.limit.string.overflow=\ |
|
299 |
UTF8 representation for string \"{0}...\" is too long for the constant pool |
|
300 |
||
301 |
compiler.err.malformed.fp.lit=\ |
|
302 |
malformed floating point literal |
|
303 |
compiler.err.method.does.not.override.superclass=\ |
|
304 |
method does not override or implement a method from a supertype |
|
305 |
compiler.err.missing.meth.body.or.decl.abstract=\ |
|
306 |
missing method body, or declare abstract |
|
307 |
compiler.err.missing.ret.stmt=\ |
|
308 |
missing return statement |
|
309 |
compiler.err.missing.ret.val=\ |
|
310 |
missing return value |
|
311 |
compiler.err.mod.not.allowed.here=\ |
|
312 |
modifier {0} not allowed here |
|
313 |
compiler.err.intf.not.allowed.here=\ |
|
314 |
interface not allowed here |
|
315 |
compiler.err.enums.must.be.static=\ |
|
316 |
enum declarations allowed only in static contexts |
|
317 |
||
318 |
compiler.err.name.clash.same.erasure=\ |
|
319 |
name clash: {0} and {1} have the same erasure |
|
320 |
compiler.err.name.clash.same.erasure.no.override=\ |
|
321 |
name clash: {0} in {1} and {2} in {3} have the same erasure, yet neither overrides the other |
|
322 |
compiler.err.name.reserved.for.internal.use=\ |
|
323 |
{0} is reserved for internal use |
|
324 |
compiler.err.native.meth.cant.have.body=\ |
|
325 |
native methods cannot have a body |
|
326 |
compiler.err.neither.conditional.subtype=\ |
|
327 |
incompatible types for ?: neither is a subtype of the other\n\ |
|
328 |
second operand: {0}\n\ |
|
329 |
third operand : {1} |
|
330 |
compiler.err.new.not.allowed.in.annotation=\ |
|
331 |
''new'' not allowed in an annotation |
|
332 |
compiler.err.no.annotation.member=\ |
|
333 |
no annotation member {0} in {1} |
|
334 |
compiler.err.no.encl.instance.of.type.in.scope=\ |
|
335 |
no enclosing instance of type {0} is in scope |
|
336 |
compiler.err.no.intf.expected.here=\ |
|
337 |
no interface expected here |
|
338 |
compiler.err.no.match.entry=\ |
|
339 |
{0} has no match in entry in {1}; required {2} |
|
340 |
compiler.err.not.annotation.type=\ |
|
341 |
{0} is not an annotation type |
|
342 |
compiler.err.not.def.access.class.intf.cant.access=\ |
|
343 |
{0} in {1} is defined in an inaccessible class or interface |
|
344 |
compiler.err.not.def.public.cant.access=\ |
|
345 |
{0} is not public in {1}; cannot be accessed from outside package |
|
346 |
compiler.err.not.loop.label=\ |
|
347 |
not a loop label: {0} |
|
348 |
compiler.err.not.stmt=\ |
|
349 |
not a statement |
|
350 |
compiler.err.not.encl.class=\ |
|
351 |
not an enclosing class: {0} |
|
352 |
||
353 |
compiler.err.operator.cant.be.applied=\ |
|
354 |
operator {0} cannot be applied to {1} |
|
355 |
||
356 |
compiler.err.pkg.annotations.sb.in.package-info.java=\ |
|
357 |
package annotations should be in file package-info.java |
|
358 |
compiler.err.pkg.clashes.with.class.of.same.name=\ |
|
359 |
package {0} clashes with class of same name |
|
360 |
||
1996 | 361 |
compiler.err.warnings.and.werror=\ |
362 |
warnings found and -Werror specified |
|
363 |
||
10 | 364 |
# Errors related to annotation processing |
365 |
||
366 |
compiler.err.proc.cant.access=\ |
|
367 |
cannot access {0}\n\ |
|
368 |
{1}\n\ |
|
369 |
Consult the following stack trace for details.\n\ |
|
370 |
{2} |
|
371 |
||
372 |
compiler.err.proc.cant.find.class=\ |
|
373 |
Could not find class file for ''{0}''. |
|
374 |
||
375 |
# Print a client-generated error message; assumed to be localized, no translation required |
|
376 |
compiler.err.proc.messager=\ |
|
377 |
{0} |
|
378 |
||
379 |
compiler.err.proc.no.explicit.annotation.processing.requested=\ |
|
380 |
Class names, ''{0}'', are only accepted if annotation processing is explicitly requested |
|
381 |
||
382 |
compiler.err.proc.no.service=\ |
|
383 |
A service loader class could not be found.\n\ |
|
384 |
Either java.util.ServiceLoader or sun.misc.Service must be available. |
|
385 |
||
386 |
compiler.err.proc.processor.bad.option.name=\ |
|
387 |
Bad option name ''{0}'' provided by processor ''{1}'' |
|
388 |
||
389 |
compiler.err.proc.processor.cant.instantiate=\ |
|
390 |
Could not instantiate an instance of processor ''{0}'' |
|
391 |
||
392 |
compiler.err.proc.processor.constructor.error=\ |
|
393 |
Exception thrown while constructing Processor object: {0} |
|
394 |
||
395 |
compiler.err.proc.processor.not.found=\ |
|
396 |
Annotation processor ''{0}'' not found |
|
397 |
||
398 |
compiler.err.proc.processor.wrong.type=\ |
|
399 |
Annotation processor ''{0}'' does not implement javax.annotation.processing.Processor |
|
400 |
||
401 |
compiler.err.proc.service.problem=\ |
|
402 |
Error creating a service loader to load Processors. |
|
403 |
||
404 |
compiler.err.proc.bad.config.file=\ |
|
405 |
Bad service configuration file, or exception thrown while constructing Processor object: {0} |
|
406 |
||
407 |
compiler.err.proc.cant.create.loader=\ |
|
408 |
Could not create class loader for annotation processors: {0} |
|
409 |
||
410 |
compiler.err.qualified.new.of.static.class=\ |
|
411 |
qualified new of static class |
|
412 |
||
413 |
compiler.err.recursive.ctor.invocation=\ |
|
414 |
recursive constructor invocation |
|
415 |
compiler.err.ref.ambiguous=\ |
|
416 |
reference to {0} is ambiguous, both {1} {2} in {3} and {4} {5} in {6} match |
|
417 |
compiler.err.repeated.annotation.target=\ |
|
418 |
repeated annotation target |
|
419 |
compiler.err.repeated.interface=\ |
|
420 |
repeated interface |
|
421 |
compiler.err.repeated.modifier=\ |
|
422 |
repeated modifier |
|
423 |
compiler.err.report.access=\ |
|
424 |
{0} has {1} access in {2} |
|
425 |
compiler.err.ret.outside.meth=\ |
|
426 |
return outside method |
|
427 |
||
428 |
compiler.err.signature.doesnt.match.supertype=\ |
|
429 |
signature does not match {0}; incompatible supertype |
|
430 |
compiler.err.signature.doesnt.match.intf=\ |
|
431 |
signature does not match {0}; incompatible interfaces |
|
432 |
compiler.err.does.not.override.abstract=\ |
|
433 |
{0} is not abstract and does not override abstract method {1} in {2} |
|
434 |
compiler.err.source.cant.overwrite.input.file=\ |
|
435 |
error writing source; cannot overwrite input file {0} |
|
436 |
compiler.err.stack.sim.error=\ |
|
437 |
Internal error: stack sim error on {0} |
|
438 |
compiler.err.static.imp.only.classes.and.interfaces=\ |
|
439 |
static import only from classes and interfaces |
|
4142 | 440 |
compiler.err.string.const.req=\ |
441 |
constant string expression required |
|
10 | 442 |
compiler.err.synthetic.name.conflict=\ |
443 |
the symbol {0} conflicts with a compiler-synthesized symbol in {1} |
|
3557
a803afefa115
6521805: Regression: JDK5/JDK6 javac allows write access to outer class reference
mcimadamore
parents:
3554
diff
changeset
|
444 |
compiler.warn.synthetic.name.conflict=\ |
a803afefa115
6521805: Regression: JDK5/JDK6 javac allows write access to outer class reference
mcimadamore
parents:
3554
diff
changeset
|
445 |
the symbol {0} conflicts with a compiler-synthesized symbol in {1} |
10 | 446 |
|
447 |
compiler.err.throws.not.allowed.in.intf.annotation=\ |
|
448 |
throws clause not allowed in @interface members |
|
449 |
compiler.err.try.without.catch.or.finally=\ |
|
450 |
''try'' without ''catch'' or ''finally'' |
|
451 |
compiler.err.type.doesnt.take.params=\ |
|
452 |
type {0} does not take parameters |
|
453 |
compiler.err.type.var.cant.be.deref=\ |
|
454 |
cannot select from a type variable |
|
455 |
compiler.err.type.var.may.not.be.followed.by.other.bounds=\ |
|
456 |
a type variable may not be followed by other bounds |
|
457 |
compiler.err.type.var.more.than.once=\ |
|
458 |
type variable {0} occurs more than once in result type of {1}; cannot be left uninstantiated |
|
459 |
compiler.err.type.var.more.than.once.in.result=\ |
|
460 |
type variable {0} occurs more than once in type of {1}; cannot be left uninstantiated |
|
461 |
compiler.err.types.incompatible.diff.ret=\ |
|
462 |
types {0} and {1} are incompatible; both define {2}, but with unrelated return types |
|
463 |
||
2723
b659ca23d5f5
6829189: Java programming with JSR 292 needs language support
jrose
parents:
2223
diff
changeset
|
464 |
compiler.err.unclosed.bytecode.ident=\ |
b659ca23d5f5
6829189: Java programming with JSR 292 needs language support
jrose
parents:
2223
diff
changeset
|
465 |
unclosed bytecode identifier |
10 | 466 |
compiler.err.unclosed.char.lit=\ |
467 |
unclosed character literal |
|
468 |
compiler.err.unclosed.comment=\ |
|
469 |
unclosed comment |
|
470 |
compiler.err.unclosed.str.lit=\ |
|
471 |
unclosed string literal |
|
472 |
compiler.err.unknown.enum.constant=\ |
|
473 |
in class file {0}: unknown enum constant {1}.{2} |
|
474 |
compiler.err.unsupported.encoding=\ |
|
475 |
unsupported encoding: {0} |
|
476 |
compiler.err.io.exception=\ |
|
477 |
error reading source file: {0} |
|
478 |
compiler.err.undef.label=\ |
|
479 |
undefined label: {0} |
|
480 |
compiler.err.undetermined.type=\ |
|
481 |
type parameters of {0} cannot be determined |
|
482 |
compiler.err.undetermined.type.1=\ |
|
483 |
type parameters of {0} cannot be determined; {1} |
|
3140
15a274b13051
6638712: Inference with wildcard types causes selection of inapplicable method
mcimadamore
parents:
2984
diff
changeset
|
484 |
compiler.err.invalid.inferred.types=\ |
15a274b13051
6638712: Inference with wildcard types causes selection of inapplicable method
mcimadamore
parents:
2984
diff
changeset
|
485 |
invalid inferred types for {0}; {1} |
5321
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
486 |
compiler.err.cant.apply.diamond=\ |
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
487 |
cannot infer type arguments for {0} |
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
488 |
compiler.err.cant.apply.diamond.1=\ |
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
489 |
cannot infer type arguments for {0};\n\ |
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
490 |
reason: {1} |
10 | 491 |
compiler.err.unreachable.stmt=\ |
492 |
unreachable statement |
|
493 |
compiler.err.initializer.must.be.able.to.complete.normally=\ |
|
494 |
initializer must be able to complete normally |
|
495 |
compiler.err.unreported.exception.need.to.catch.or.throw=\ |
|
496 |
unreported exception {0}; must be caught or declared to be thrown |
|
497 |
compiler.err.unreported.exception.default.constructor=\ |
|
498 |
unreported exception {0} in default constructor |
|
499 |
compiler.err.unsupported.cross.fp.lit=\ |
|
500 |
hexadecimal floating-point literals are not supported on this VM |
|
501 |
compiler.err.void.not.allowed.here=\ |
|
502 |
''void'' type not allowed here |
|
503 |
||
504 |
compiler.err.wrong.number.type.args=\ |
|
505 |
wrong number of type arguments; required {0} |
|
506 |
||
507 |
compiler.err.var.might.already.be.assigned=\ |
|
508 |
variable {0} might already have been assigned |
|
509 |
compiler.err.var.might.not.have.been.initialized=\ |
|
510 |
variable {0} might not have been initialized |
|
511 |
compiler.err.var.might.be.assigned.in.loop=\ |
|
512 |
variable {0} might be assigned in loop |
|
513 |
||
514 |
# In the following string, {1} will always be the detail message from |
|
515 |
# java.io.IOException. |
|
516 |
compiler.err.class.cant.write=\ |
|
517 |
error while writing {0}: {1} |
|
518 |
||
519 |
# In the following string, {0} is the name of the class in the Java source. |
|
520 |
# It really should be used two times.. |
|
521 |
compiler.err.class.public.should.be.in.file=\ |
|
522 |
class {0} is public, should be declared in a file named {0}.java |
|
523 |
||
524 |
## All errors which do not refer to a particular line in the source code are |
|
525 |
## preceded by this string. |
|
526 |
compiler.err.error=\ |
|
527 |
error:\u0020 |
|
528 |
||
529 |
# The following error messages do not refer to a line in the source code. |
|
530 |
compiler.err.cant.read.file=\ |
|
531 |
cannot read: {0} |
|
532 |
||
533 |
##### |
|
534 |
||
535 |
# Fatal Errors |
|
536 |
||
537 |
compiler.misc.fatal.err.no.java.lang=\ |
|
538 |
Fatal Error: Unable to find package java.lang in classpath or bootclasspath |
|
539 |
compiler.misc.fatal.err.cant.locate.meth=\ |
|
540 |
Fatal Error: Unable to find method {0} |
|
541 |
compiler.misc.fatal.err.cant.locate.field=\ |
|
542 |
Fatal Error: Unable to find field {0} |
|
543 |
compiler.misc.fatal.err.cant.locate.ctor=\ |
|
544 |
Fatal Error: Unable to find constructor for {0} |
|
545 |
||
546 |
##### |
|
547 |
||
548 |
## |
|
549 |
## miscellaneous strings |
|
550 |
## |
|
551 |
||
552 |
compiler.misc.source.unavailable=\ |
|
553 |
(source unavailable) |
|
554 |
compiler.misc.base.membership=\ |
|
555 |
all your base class are belong to us |
|
556 |
compiler.misc.x.print.processor.info=\ |
|
557 |
Processor {0} matches {1} and returns {2}. |
|
558 |
compiler.misc.x.print.rounds=\ |
|
559 |
Round {0}:\n\tinput files: {1}\n\tannotations: {2}\n\tlast round: {3} |
|
560 |
||
561 |
##### |
|
562 |
||
563 |
## The following string will appear before all messages keyed as: |
|
564 |
## "compiler.note". |
|
565 |
compiler.note.note=\ |
|
566 |
Note:\u0020 |
|
567 |
||
568 |
compiler.note.deprecated.filename=\ |
|
569 |
{0} uses or overrides a deprecated API. |
|
570 |
compiler.note.deprecated.plural=\ |
|
571 |
Some input files use or override a deprecated API. |
|
572 |
# The following string may appear after one of the above deprecation |
|
573 |
# messages. |
|
574 |
compiler.note.deprecated.recompile=\ |
|
575 |
Recompile with -Xlint:deprecation for details. |
|
576 |
||
577 |
compiler.note.deprecated.filename.additional=\ |
|
578 |
{0} has additional uses or overrides of a deprecated API. |
|
579 |
compiler.note.deprecated.plural.additional=\ |
|
580 |
Some input files additionally use or override a deprecated API. |
|
581 |
||
582 |
compiler.note.unchecked.filename=\ |
|
583 |
{0} uses unchecked or unsafe operations. |
|
584 |
compiler.note.unchecked.plural=\ |
|
585 |
Some input files use unchecked or unsafe operations. |
|
586 |
# The following string may appear after one of the above deprecation |
|
587 |
# messages. |
|
588 |
compiler.note.unchecked.recompile=\ |
|
589 |
Recompile with -Xlint:unchecked for details. |
|
590 |
||
591 |
compiler.note.unchecked.filename.additional=\ |
|
592 |
{0} has additional unchecked or unsafe operations. |
|
593 |
compiler.note.unchecked.plural.additional=\ |
|
594 |
Some input files additionally use unchecked or unsafe operations. |
|
595 |
||
5846
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
596 |
compiler.note.varargs.filename=\ |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
597 |
{0} declares unsafe vararg methods. |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
598 |
compiler.note.varargs.plural=\ |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
599 |
Some input files declare unsafe vararg methods. |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
600 |
# The following string may appear after one of the above unsafe varargs |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
601 |
# messages. |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
602 |
compiler.note.varargs.recompile=\ |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
603 |
Recompile with -Xlint:varargs for details. |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
604 |
|
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
605 |
compiler.note.varargs.filename.additional=\ |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
606 |
{0} declares additional unsafe vararg methods. |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
607 |
compiler.note.varargs.plural.additional=\ |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
608 |
Some input files additionally declares unsafe vararg methods. |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
609 |
|
3661 | 610 |
compiler.note.sunapi.filename=\ |
611 |
{0} uses Sun proprietary API that may be removed in a future release. |
|
612 |
compiler.note.sunapi.plural=\ |
|
613 |
Some input files use Sun proprietary API that may be removed in a future release. |
|
614 |
# The following string may appear after one of the above sunapi messages. |
|
615 |
compiler.note.sunapi.recompile=\ |
|
616 |
Recompile with -Xlint:sunapi for details. |
|
617 |
||
618 |
compiler.note.sunapi.filename.additional=\ |
|
619 |
{0} uses additional Sun proprietary API that may be removed in a future release. |
|
620 |
compiler.note.sunapi.plural.additional=\ |
|
621 |
Some input files additionally use Sun proprietary API that may be removed in a future release. |
|
622 |
||
623 |
# Notes related to annotation processing |
|
624 |
||
625 |
# Print a client-generated note; assumed to be localized, no translation required |
|
626 |
compiler.note.proc.messager=\ |
|
627 |
{0} |
|
628 |
||
10 | 629 |
##### |
630 |
||
631 |
compiler.misc.count.error=\ |
|
632 |
{0} error |
|
633 |
compiler.misc.count.error.plural=\ |
|
634 |
{0} errors |
|
635 |
compiler.misc.count.warn=\ |
|
636 |
{0} warning |
|
637 |
compiler.misc.count.warn.plural=\ |
|
638 |
{0} warnings |
|
639 |
||
640 |
## extra output when using -verbose (JavaCompiler) |
|
641 |
||
642 |
compiler.misc.verbose.checking.attribution=\ |
|
643 |
[checking {0}] |
|
644 |
compiler.misc.verbose.parsing.done=\ |
|
645 |
[parsing completed {0}ms] |
|
646 |
compiler.misc.verbose.parsing.started=\ |
|
647 |
[parsing started {0}] |
|
648 |
compiler.misc.verbose.total=\ |
|
649 |
[total {0}ms] |
|
650 |
compiler.misc.verbose.wrote.file=\ |
|
651 |
[wrote {0}] |
|
652 |
||
653 |
## extra output when using -verbose (Retro) |
|
654 |
compiler.misc.verbose.retro=\ |
|
655 |
[retrofitting {0}] |
|
656 |
compiler.misc.verbose.retro.with=\ |
|
657 |
\tretrofitting {0} with {1} |
|
658 |
compiler.misc.verbose.retro.with.list=\ |
|
659 |
\tretrofitting {0} with type parameters {1}, supertype {2}, interfaces {3} |
|
660 |
||
661 |
## extra output when using -verbose (code/ClassReader) |
|
662 |
compiler.misc.verbose.loading=\ |
|
663 |
[loading {0}] |
|
664 |
||
665 |
compiler.misc.verbose.sourcepath=\ |
|
666 |
[search path for source files: {0}] |
|
667 |
||
668 |
compiler.misc.verbose.classpath=\ |
|
669 |
[search path for class files: {0}] |
|
670 |
||
671 |
## extra output when using -checkclassfile (code/ClassReader) |
|
672 |
compiler.misc.ccf.found.later.version=\ |
|
673 |
class file has later version than expected: {0} |
|
674 |
compiler.misc.ccf.unrecognized.attribute=\ |
|
675 |
unrecognized attribute: {0} |
|
676 |
||
677 |
## extra output when using -prompt (util/Log) |
|
678 |
compiler.misc.resume.abort=\ |
|
679 |
R)esume, A)bort> |
|
680 |
||
681 |
##### |
|
682 |
||
683 |
## |
|
684 |
## warnings |
|
685 |
## |
|
686 |
||
687 |
## All warning messages are preceded by the following string. |
|
688 |
compiler.warn.warning=\ |
|
689 |
warning:\u0020 |
|
690 |
||
691 |
compiler.warn.constant.SVUID=\ |
|
692 |
[serial] serialVersionUID must be constant in class {0} |
|
693 |
||
694 |
compiler.warn.dir.path.element.not.found=\ |
|
695 |
[path] bad path element "{0}": no such directory |
|
696 |
||
697 |
compiler.warn.finally.cannot.complete=\ |
|
698 |
[finally] finally clause cannot complete normally |
|
699 |
||
700 |
compiler.warn.has.been.deprecated=\ |
|
701 |
[deprecation] {0} in {1} has been deprecated |
|
702 |
||
703 |
compiler.warn.sun.proprietary=\ |
|
704 |
{0} is Sun proprietary API and may be removed in a future release |
|
705 |
||
706 |
compiler.warn.illegal.char.for.encoding=\ |
|
707 |
unmappable character for encoding {0} |
|
708 |
compiler.warn.improper.SVUID=\ |
|
709 |
[serial] serialVersionUID must be declared static final in class {0} |
|
710 |
||
711 |
compiler.warn.inexact.non-varargs.call=\ |
|
712 |
non-varargs call of varargs method with inexact argument type for last parameter;\n\ |
|
713 |
cast to {0} for a varargs call\n\ |
|
714 |
cast to {1} for a non-varargs call and to suppress this warning |
|
715 |
||
716 |
compiler.warn.long.SVUID=\ |
|
717 |
[serial] serialVersionUID must be of type long in class {0} |
|
718 |
||
719 |
compiler.warn.missing.SVUID=\ |
|
720 |
[serial] serializable class {0} has no definition of serialVersionUID |
|
721 |
||
722 |
compiler.warn.override.varargs.missing=\ |
|
723 |
{0}; overridden method has no ''...'' |
|
724 |
compiler.warn.override.varargs.extra=\ |
|
725 |
{0}; overriding method is missing ''...'' |
|
726 |
compiler.warn.override.bridge=\ |
|
727 |
{0}; overridden method is a bridge method |
|
728 |
||
729 |
compiler.warn.pkg-info.already.seen=\ |
|
4692 | 730 |
a package-info.java file has already been seen for package {0} |
10 | 731 |
compiler.warn.path.element.not.found=\ |
732 |
[path] bad path element "{0}": no such file or directory |
|
733 |
compiler.warn.possible.fall-through.into.case=\ |
|
734 |
[fallthrough] possible fall-through into case |
|
735 |
||
736 |
compiler.warn.redundant.cast=\ |
|
737 |
[cast] redundant cast to {0} |
|
738 |
||
739 |
compiler.warn.position.overflow=\ |
|
740 |
Position encoding overflows at line {0} |
|
741 |
||
742 |
compiler.warn.big.major.version=\ |
|
743 |
{0}: major version {1} is newer than {2}, the highest major version supported by this compiler.\n\ |
|
744 |
It is recommended that the compiler be upgraded. |
|
745 |
||
5002
12a9e8562200
4880220: Add a warning when accessing a static method via an reference
jjg
parents:
4692
diff
changeset
|
746 |
compiler.warn.static.not.qualified.by.type=\ |
12a9e8562200
4880220: Add a warning when accessing a static method via an reference
jjg
parents:
4692
diff
changeset
|
747 |
[static] static {0} should be qualified by type name, {1}, instead of by an expression |
12a9e8562200
4880220: Add a warning when accessing a static method via an reference
jjg
parents:
4692
diff
changeset
|
748 |
|
10 | 749 |
# Warnings related to annotation processing |
750 |
compiler.warn.proc.package.does.not.exist=\ |
|
751 |
package {0} does not exist |
|
752 |
compiler.warn.proc.file.reopening=\ |
|
753 |
Attempt to create a file for ''{0}'' multiple times |
|
754 |
||
755 |
compiler.warn.proc.type.already.exists=\ |
|
756 |
A file for type ''{0}'' already exists on the sourcepath or classpath |
|
757 |
||
758 |
compiler.warn.proc.type.recreate=\ |
|
759 |
Attempt to create a file for type ''{0}'' multiple times |
|
760 |
||
761 |
compiler.warn.proc.illegal.file.name=\ |
|
762 |
Cannot create file for illegal name ''{0}''. |
|
763 |
||
764 |
compiler.warn.proc.file.create.last.round=\ |
|
765 |
File for type ''{0}'' created in the last round will not be subject to annotation processing. |
|
766 |
||
767 |
compiler.warn.proc.malformed.supported.string=\ |
|
768 |
Malformed string ''{0}'' for a supported annotation type returned by processor ''{1}'' |
|
769 |
||
770 |
compiler.warn.proc.annotations.without.processors=\ |
|
771 |
No processor claimed any of these annotations: {0} |
|
772 |
||
773 |
compiler.warn.proc.processor.incompatible.source.version=\ |
|
774 |
Supported source version ''{0}'' from annotation processor ''{1}'' less than -source ''{2}'' |
|
775 |
||
776 |
compiler.warn.proc.proc-only.requested.no.procs=\ |
|
777 |
Annotation processing without compilation requested but no processors were found. |
|
778 |
||
779 |
compiler.warn.proc.use.implicit=\ |
|
780 |
Implicitly compiled files were not subject to annotation processing.\n\ |
|
781 |
Use -implicit to specify a policy for implicit compilation. |
|
782 |
||
783 |
compiler.warn.proc.use.proc.or.implicit=\ |
|
784 |
Implicitly compiled files were not subject to annotation processing.\n\ |
|
785 |
Use -proc:none to disable annotation processing or -implicit to specify a policy for implicit compilation. |
|
786 |
||
787 |
# Print a client-generated warning; assumed to be localized, no translation required |
|
788 |
compiler.warn.proc.messager=\ |
|
789 |
{0} |
|
790 |
||
791 |
compiler.warn.proc.unclosed.type.files=\ |
|
792 |
Unclosed files for the types ''{0}''; these types will not undergo annotation processing |
|
793 |
||
794 |
compiler.warn.proc.unmatched.processor.options=\ |
|
795 |
The following options were not recognized by any processor: ''{0}'' |
|
796 |
||
797 |
compiler.warn.unchecked.assign=\ |
|
798 |
[unchecked] unchecked assignment: {0} to {1} |
|
799 |
compiler.warn.unchecked.assign.to.var=\ |
|
800 |
[unchecked] unchecked assignment to variable {0} as member of raw type {1} |
|
801 |
compiler.warn.unchecked.call.mbr.of.raw.type=\ |
|
802 |
[unchecked] unchecked call to {0} as a member of the raw type {1} |
|
803 |
compiler.warn.unchecked.cast.to.type=\ |
|
804 |
[unchecked] unchecked cast to type {0} |
|
805 |
compiler.warn.unchecked.meth.invocation.applied=\ |
|
1534
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
1358
diff
changeset
|
806 |
[unchecked] unchecked method invocation: {0} {1} in {4} {5} is applied to given types\n\ |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
1358
diff
changeset
|
807 |
required: {2}\n\ |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
1358
diff
changeset
|
808 |
found: {3} |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
1358
diff
changeset
|
809 |
|
10 | 810 |
compiler.warn.unchecked.generic.array.creation=\ |
3554
a0a7f7f2a6e5
6806876: ClassCastException occurs in assignment expressions without any heap pollutions
mcimadamore
parents:
3540
diff
changeset
|
811 |
[unchecked] unchecked generic array creation for varargs parameter of type {0} |
10 | 812 |
|
5846
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
813 |
compiler.warn.varargs.non.reifiable.type=\ |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
814 |
[varargs] Possible heap pollution from parameterized vararg type {0} |
6df0e6bcb388
6945418: Project Coin: Simplified Varargs Method Invocation
mcimadamore
parents:
5520
diff
changeset
|
815 |
|
10 | 816 |
compiler.warn.missing.deprecated.annotation=\ |
817 |
[dep-ann] deprecated item is not annotated with @Deprecated |
|
818 |
||
819 |
compiler.warn.invalid.archive.file=\ |
|
820 |
[path] Unexpected file on path: {0} |
|
821 |
||
822 |
compiler.warn.unexpected.archive.file=\ |
|
823 |
[path] Unexpected extension for archive file: {0} |
|
824 |
||
825 |
compiler.warn.div.zero=\ |
|
826 |
[divzero] division by zero |
|
827 |
||
828 |
compiler.warn.empty.if=\ |
|
829 |
[empty] empty statement after if |
|
830 |
||
831 |
compiler.warn.annotation.method.not.found=\ |
|
832 |
Cannot find annotation method ''{1}()'' in type ''{0}'' |
|
833 |
||
834 |
compiler.warn.annotation.method.not.found.reason=\ |
|
835 |
Cannot find annotation method ''{1}()'' in type ''{0}'': {2} |
|
836 |
||
1358 | 837 |
compiler.warn.raw.class.use=\ |
1538
3cbbc9424f43
6763518: Impossible to suppress raw-type warnings
mcimadamore
parents:
1534
diff
changeset
|
838 |
[rawtypes] found raw type: {0}\n\ |
1358 | 839 |
missing type parameters for generic class {1} |
840 |
||
10 | 841 |
##### |
842 |
||
843 |
## The following are tokens which are non-terminals in the language. They should |
|
844 |
## be named as JLS3 calls them when translated to the appropriate language. |
|
845 |
compiler.misc.token.identifier=\ |
|
846 |
<identifier> |
|
847 |
compiler.misc.token.character=\ |
|
848 |
<character> |
|
849 |
compiler.misc.token.string=\ |
|
850 |
<string> |
|
851 |
compiler.misc.token.integer=\ |
|
852 |
<integer> |
|
853 |
compiler.misc.token.long-integer=\ |
|
854 |
<long integer> |
|
855 |
compiler.misc.token.float=\ |
|
856 |
<float> |
|
857 |
compiler.misc.token.double=\ |
|
858 |
<double> |
|
859 |
compiler.misc.token.bad-symbol=\ |
|
860 |
<bad symbol> |
|
861 |
compiler.misc.token.end-of-input=\ |
|
862 |
<end of input> |
|
863 |
||
864 |
## The argument to the following string will always be one of the following: |
|
865 |
## 1. one of the above non-terminals |
|
866 |
## 2. a keyword (JLS1.8) |
|
867 |
## 3. a boolean literal (JLS3.10.3) |
|
868 |
## 4. the null literal (JLS3.10.7) |
|
869 |
## 5. a Java separator (JLS3.11) |
|
870 |
## 6. an operator (JLS3.12) |
|
871 |
## |
|
872 |
## This is the only place these tokens will be used. |
|
873 |
compiler.err.expected=\ |
|
874 |
{0} expected |
|
875 |
compiler.err.expected2=\ |
|
876 |
{0} or {1} expected |
|
877 |
compiler.err.expected3=\ |
|
878 |
{0}, {1}, or {2} expected |
|
879 |
||
880 |
compiler.err.premature.eof=\ |
|
881 |
reached end of file while parsing |
|
882 |
||
883 |
## The following are related in form, but do not easily fit the above paradigm. |
|
884 |
compiler.err.dot.class.expected=\ |
|
885 |
''.class'' expected |
|
886 |
||
887 |
## The argument to this string will always be either 'case' or 'default'. |
|
888 |
compiler.err.orphaned=\ |
|
889 |
orphaned {0} |
|
890 |
||
891 |
compiler.misc.anonymous.class=\ |
|
892 |
<anonymous {0}> |
|
893 |
||
1357 | 894 |
compiler.misc.type.captureof=\ |
895 |
capture#{0} of {1} |
|
896 |
||
2221
cd6557bcaa0a
6799605: Basic/Raw formatters should use type/symbol printer instead of toString()
mcimadamore
parents:
2085
diff
changeset
|
897 |
compiler.misc.type.captureof.1=\ |
cd6557bcaa0a
6799605: Basic/Raw formatters should use type/symbol printer instead of toString()
mcimadamore
parents:
2085
diff
changeset
|
898 |
capture#{0} |
cd6557bcaa0a
6799605: Basic/Raw formatters should use type/symbol printer instead of toString()
mcimadamore
parents:
2085
diff
changeset
|
899 |
|
1357 | 900 |
compiler.misc.type.none=\ |
901 |
<none> |
|
902 |
||
10 | 903 |
compiler.misc.unnamed.package=\ |
904 |
unnamed package |
|
905 |
||
906 |
##### |
|
907 |
||
908 |
compiler.err.cant.access=\ |
|
909 |
cannot access {0}\n\ |
|
910 |
{1} |
|
911 |
||
912 |
compiler.misc.bad.class.file.header=\ |
|
913 |
bad class file: {0}\n\ |
|
914 |
{1}\n\ |
|
915 |
Please remove or make sure it appears in the correct subdirectory of the classpath. |
|
169 | 916 |
compiler.misc.bad.source.file.header=\ |
917 |
bad source file: {0}\n\ |
|
918 |
{1}\n\ |
|
919 |
Please remove or make sure it appears in the correct subdirectory of the sourcepath. |
|
10 | 920 |
|
921 |
## The following are all possible strings for the second argument ({1}) of the |
|
922 |
## above strings. |
|
923 |
compiler.misc.bad.class.signature=\ |
|
924 |
bad class signature: {0} |
|
925 |
compiler.misc.bad.enclosing.method=\ |
|
926 |
bad enclosing method attribute: {0} |
|
927 |
compiler.misc.bad.runtime.invisible.param.annotations=\ |
|
928 |
bad RuntimeInvisibleParameterAnnotations attribute: {0} |
|
929 |
compiler.misc.bad.const.pool.tag=\ |
|
930 |
bad constant pool tag: {0} |
|
931 |
compiler.misc.bad.const.pool.tag.at=\ |
|
932 |
bad constant pool tag: {0} at {1} |
|
933 |
compiler.misc.bad.signature=\ |
|
934 |
bad signature: {0} |
|
3149 | 935 |
compiler.misc.bad.type.annotation.value=\ |
936 |
bad type annotation target type value: {0} |
|
10 | 937 |
compiler.misc.class.file.wrong.class=\ |
938 |
class file contains wrong class: {0} |
|
939 |
compiler.misc.class.file.not.found=\ |
|
940 |
class file for {0} not found |
|
941 |
compiler.misc.file.doesnt.contain.class=\ |
|
942 |
file does not contain class {0} |
|
943 |
compiler.misc.file.does.not.contain.package=\ |
|
944 |
file does not contain package {0} |
|
945 |
compiler.misc.illegal.start.of.class.file=\ |
|
946 |
illegal start of class file |
|
947 |
compiler.misc.unable.to.access.file=\ |
|
948 |
unable to access file: {0} |
|
949 |
compiler.misc.unicode.str.not.supported=\ |
|
950 |
unicode string in class file not supported |
|
951 |
compiler.misc.undecl.type.var=\ |
|
952 |
undeclared type variable: {0} |
|
953 |
compiler.misc.wrong.version=\ |
|
954 |
class file has wrong version {0}.{1}, should be {2}.{3} |
|
955 |
||
956 |
##### |
|
957 |
||
958 |
compiler.err.not.within.bounds=\ |
|
959 |
type parameter {0} is not within its bound |
|
960 |
||
961 |
compiler.err.not.within.bounds.explain=\ |
|
962 |
type parameter {0} is not within its bound; {1} |
|
963 |
||
964 |
## The following are all possible strings for the second argument ({1}) of the |
|
965 |
## above string. |
|
966 |
||
967 |
## none yet... |
|
968 |
||
969 |
##### |
|
970 |
||
971 |
compiler.err.prob.found.req=\ |
|
972 |
{0}\n\ |
|
2085
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
973 |
required: {2}\n\ |
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
974 |
found: {1} |
10 | 975 |
compiler.warn.prob.found.req=\ |
976 |
{0}\n\ |
|
2085
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
977 |
required: {2}\n\ |
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
978 |
found: {1} |
10 | 979 |
compiler.err.prob.found.req.1=\ |
980 |
{0} {3}\n\ |
|
2085
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
981 |
required: {2}\n\ |
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
982 |
found: {1} |
10 | 983 |
|
984 |
## The following are all possible strings for the first argument ({0}) of the |
|
985 |
## above strings. |
|
986 |
compiler.misc.incompatible.types=\ |
|
987 |
incompatible types |
|
988 |
compiler.misc.incompatible.types.1=\ |
|
989 |
incompatible types; {0} |
|
990 |
compiler.misc.inconvertible.types=\ |
|
991 |
inconvertible types |
|
992 |
compiler.misc.possible.loss.of.precision=\ |
|
993 |
possible loss of precision |
|
994 |
||
995 |
compiler.misc.unchecked.assign=\ |
|
996 |
[unchecked] unchecked conversion |
|
997 |
# compiler.misc.storecheck=\ |
|
998 |
# [unchecked] assignment might cause later store checks to fail |
|
999 |
# compiler.misc.unchecked=\ |
|
1000 |
# [unchecked] assigned array cannot dynamically check its stores |
|
1001 |
compiler.misc.unchecked.cast.to.type=\ |
|
1002 |
[unchecked] unchecked cast |
|
1003 |
||
1004 |
compiler.misc.assignment.from.super-bound=\ |
|
1005 |
assignment from super-bound type {0} |
|
1006 |
compiler.misc.assignment.to.extends-bound=\ |
|
1007 |
assignment to extends-bound type {0} |
|
1008 |
# compiler.err.star.expected=\ |
|
1009 |
# ''*'' expected |
|
1010 |
# compiler.err.no.elem.type=\ |
|
1011 |
# \[\*\] cannot have a type |
|
1012 |
||
1013 |
##### |
|
1014 |
||
1015 |
compiler.err.type.found.req=\ |
|
1016 |
unexpected type\n\ |
|
2085
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
1017 |
required: {1}\n\ |
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
1018 |
found: {0} |
10 | 1019 |
|
1020 |
## The following are all possible strings for the first argument ({0}) of the |
|
1021 |
## above string. |
|
1022 |
compiler.misc.type.req.class=\ |
|
1023 |
class |
|
1024 |
compiler.misc.type.req.class.array=\ |
|
1025 |
class or array |
|
1026 |
compiler.misc.type.req.ref=\ |
|
1027 |
reference |
|
1028 |
compiler.misc.type.req.exact=\ |
|
1029 |
class or interface without bounds |
|
1030 |
compiler.misc.type.parameter=\ |
|
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1031 |
type parameter {0} |
10 | 1032 |
|
1033 |
##### |
|
1034 |
||
1035 |
## The following are all possible strings for the last argument of all those |
|
1036 |
## diagnostics whose key ends in ".1" |
|
1037 |
compiler.misc.undetermined.type=\ |
|
1038 |
undetermined type |
|
1039 |
ncompiler.misc.type.variable.has.undetermined.type=\ |
|
1040 |
type variable {0} has undetermined type |
|
1041 |
compiler.misc.no.unique.maximal.instance.exists=\ |
|
1042 |
no unique maximal instance exists for type variable {0} with upper bounds {1} |
|
1043 |
compiler.misc.no.unique.minimal.instance.exists=\ |
|
1044 |
no unique minimal instance exists for type variable {0} with lower bounds {1} |
|
1045 |
compiler.misc.no.conforming.instance.exists=\ |
|
1046 |
no instance(s) of type variable(s) {0} exist so that {1} conforms to {2} |
|
1047 |
compiler.misc.no.conforming.assignment.exists=\ |
|
1048 |
no instance(s) of type variable(s) {0} exist so that argument type {1} conforms to formal parameter type {2} |
|
1049 |
compiler.misc.arg.length.mismatch=\ |
|
1050 |
cannot instantiate from arguments because actual and formal argument lists differ in length |
|
1051 |
compiler.misc.inferred.do.not.conform.to.bounds=\ |
|
3140
15a274b13051
6638712: Inference with wildcard types causes selection of inapplicable method
mcimadamore
parents:
2984
diff
changeset
|
1052 |
inferred type does not conform to declared bound(s)\n\ |
15a274b13051
6638712: Inference with wildcard types causes selection of inapplicable method
mcimadamore
parents:
2984
diff
changeset
|
1053 |
inferred: {0}\n\ |
15a274b13051
6638712: Inference with wildcard types causes selection of inapplicable method
mcimadamore
parents:
2984
diff
changeset
|
1054 |
bound(s): {1} |
15a274b13051
6638712: Inference with wildcard types causes selection of inapplicable method
mcimadamore
parents:
2984
diff
changeset
|
1055 |
compiler.misc.inferred.do.not.conform.to.params=\ |
3540
dceac8629a56
6862608: rich diagnostic sometimes contain wrong type variable numbering
mcimadamore
parents:
3149
diff
changeset
|
1056 |
actual arguments do not conform to inferred formal arguments\n\ |
3140
15a274b13051
6638712: Inference with wildcard types causes selection of inapplicable method
mcimadamore
parents:
2984
diff
changeset
|
1057 |
required: {0}\n\ |
15a274b13051
6638712: Inference with wildcard types causes selection of inapplicable method
mcimadamore
parents:
2984
diff
changeset
|
1058 |
found: {1} |
5321
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
1059 |
compiler.misc.diamond=\ |
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
1060 |
{0}<> |
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
1061 |
compiler.misc.diamond.invalid.arg=\ |
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
1062 |
type argument {0} inferred for {1} is not allowed in this context |
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
1063 |
compiler.misc.diamond.invalid.args=\ |
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
1064 |
type arguments {0} inferred for {1} are not allowed in this context |
10 | 1065 |
##### |
1066 |
||
1067 |
## The first argument ({0}) is a "kindname". |
|
1068 |
compiler.err.abstract.cant.be.accessed.directly=\ |
|
1069 |
abstract {0} {1} in {2} cannot be accessed directly |
|
1070 |
||
1071 |
## The first argument ({0}) is a "kindname". |
|
1072 |
compiler.err.non-static.cant.be.ref=\ |
|
1073 |
non-static {0} {1} cannot be referenced from a static context |
|
1074 |
||
1075 |
## Both arguments ({0}, {1}) are "kindname"s. {0} is a comma-separated list |
|
1076 |
## of kindnames (the list should be identical to that provided in source. |
|
1077 |
compiler.err.unexpected.type=\ |
|
1078 |
unexpected type\n\ |
|
1079 |
required: {0}\n\ |
|
2085
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
1080 |
found: {1} |
10 | 1081 |
|
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1082 |
## The first argument {0} is a "kindname" (e.g. 'constructor', 'field', etc.) |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1083 |
## The second argument {1} is the non-resolved symbol |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1084 |
## The third argument {2} is a list of type parameters (non-empty if {1} is a method) |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1085 |
## The fourth argument {3} is a list of argument types (non-empty if {1} is a method) |
10 | 1086 |
compiler.err.cant.resolve=\ |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1087 |
cannot find symbol\n\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1088 |
symbol: {0} {1} |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1089 |
|
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1090 |
compiler.err.cant.resolve.args=\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1091 |
cannot find symbol\n\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1092 |
symbol: {0} {1}({3}) |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1093 |
|
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1094 |
compiler.err.cant.resolve.args.params=\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1095 |
cannot find symbol\n\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1096 |
symbol: {0} <{2}>{1}({3}) |
10 | 1097 |
|
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1098 |
## arguments from {0} to {3} have the same meaning as above |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1099 |
## The fifth argument {4} is the location "kindname" (e.g. 'constructor', 'field', etc.) |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1100 |
## The sixth argument {5} is the location type |
10 | 1101 |
compiler.err.cant.resolve.location=\ |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1102 |
cannot find symbol\n\ |
2085
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
1103 |
symbol: {0} {1}\n\ |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1104 |
location: {4} {5} |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1105 |
|
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1106 |
compiler.err.cant.resolve.location.args=\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1107 |
cannot find symbol\n\ |
2085
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
1108 |
symbol: {0} {1}({3})\n\ |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1109 |
location: {4} {5} |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1110 |
|
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1111 |
compiler.err.cant.resolve.location.args.params=\ |
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1112 |
cannot find symbol\n\ |
2085
4792e12a8ca2
6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents:
1996
diff
changeset
|
1113 |
symbol: {0} <{2}>{1}({3})\n\ |
939
38e24969c7e9
6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
735
diff
changeset
|
1114 |
location: {4} {5} |
10 | 1115 |
|
1116 |
## The following are all possible string for "kindname". |
|
1117 |
## They should be called whatever the JLS calls them after it been translated |
|
1118 |
## to the appropriate language. |
|
1119 |
# compiler.misc.kindname.constructor=\ |
|
1120 |
# static member |
|
1121 |
compiler.misc.kindname.annotation=\ |
|
1122 |
@interface |
|
1123 |
compiler.misc.kindname.constructor=\ |
|
1124 |
constructor |
|
1125 |
compiler.misc.kindname.interface=\ |
|
1126 |
interface |
|
1127 |
compiler.misc.kindname.static=\ |
|
1128 |
static |
|
1129 |
compiler.misc.kindname.type.variable=\ |
|
1130 |
type variable |
|
1131 |
compiler.misc.kindname.type.variable.bound=\ |
|
1132 |
bound of type variable |
|
1133 |
compiler.misc.kindname.variable=\ |
|
1134 |
variable |
|
1135 |
compiler.misc.kindname.value=\ |
|
1136 |
value |
|
1137 |
compiler.misc.kindname.method=\ |
|
1138 |
method |
|
1139 |
compiler.misc.kindname.class=\ |
|
1140 |
class |
|
1141 |
compiler.misc.kindname.package=\ |
|
1142 |
package |
|
1143 |
##### |
|
1144 |
||
1534
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
1358
diff
changeset
|
1145 |
compiler.misc.no.args=\ |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
1358
diff
changeset
|
1146 |
no arguments |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
1358
diff
changeset
|
1147 |
|
10 | 1148 |
compiler.err.override.static=\ |
3560 | 1149 |
{0}\n\ |
1150 |
overriding method is static |
|
10 | 1151 |
compiler.err.override.meth=\ |
3560 | 1152 |
{0}\n\ |
1153 |
overridden method is {1} |
|
10 | 1154 |
|
1155 |
compiler.err.override.meth.doesnt.throw=\ |
|
3560 | 1156 |
{0}\n\ |
1157 |
overridden method does not throw {1} |
|
10 | 1158 |
|
1159 |
# In the following string {1} is a space separated list of Java Keywords, as |
|
1160 |
# they would have been declared in the source code |
|
1161 |
compiler.err.override.weaker.access=\ |
|
3560 | 1162 |
{0}\n\ |
1163 |
attempting to assign weaker access privileges; was {1} |
|
1164 |
||
1165 |
compiler.err.override.incompatible.ret=\ |
|
1166 |
{0}\n\ |
|
1167 |
return type {1} is not compatible with {2} |
|
10 | 1168 |
|
3560 | 1169 |
compiler.warn.override.unchecked.ret=\ |
1170 |
[unchecked] {0}\n\ |
|
1171 |
return type requires unchecked conversion from {1} to {2} |
|
10 | 1172 |
|
3560 | 1173 |
compiler.warn.override.unchecked.thrown=\ |
1174 |
[unchecked] {0}\n\ |
|
1175 |
overridden method does not throw {1} |
|
10 | 1176 |
|
1177 |
## The following are all possible strings for the first argument ({0}) of the |
|
1178 |
## above strings. |
|
1179 |
compiler.misc.cant.override=\ |
|
1180 |
{0} in {1} cannot override {2} in {3} |
|
1181 |
compiler.misc.cant.implement=\ |
|
1182 |
{0} in {1} cannot implement {2} in {3} |
|
1183 |
compiler.misc.clashes.with=\ |
|
1184 |
{0} in {1} clashes with {2} in {3} |
|
1185 |
compiler.misc.unchecked.override=\ |
|
1186 |
{0} in {1} overrides {2} in {3} |
|
1187 |
compiler.misc.unchecked.implement=\ |
|
1188 |
{0} in {1} implements {2} in {3} |
|
1189 |
compiler.misc.unchecked.clash.with=\ |
|
1190 |
{0} in {1} overrides {2} in {3} |
|
1191 |
compiler.misc.varargs.override=\ |
|
1192 |
{0} in {1} overrides {2} in {3} |
|
1193 |
compiler.misc.varargs.implement=\ |
|
1194 |
{0} in {1} implements {2} in {3} |
|
1195 |
compiler.misc.varargs.clash.with=\ |
|
1196 |
{0} in {1} overrides {2} in {3} |
|
5321
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
1197 |
compiler.misc.non.denotable.type=\ |
c8efe769cb3b
6939620: Switch to 'complex' diamond inference scheme
mcimadamore
parents:
5320
diff
changeset
|
1198 |
Non-denotable type {0} not allowed here |
10 | 1199 |
|
1200 |
######################################## |
|
1201 |
# Diagnostics for language feature changes |
|
1202 |
######################################## |
|
1203 |
compiler.err.unsupported.fp.lit=\ |
|
3895 | 1204 |
hexadecimal floating point literals are not supported in -source {0}\n\ |
1205 |
(use -source 5 or higher to enable hexadecimal floating point literals) |
|
1206 |
||
1207 |
compiler.err.unsupported.binary.lit=\ |
|
1208 |
binary literals are not supported in -source {0}\n\ |
|
1209 |
(use -source 7 or higher to enable binary literals) |
|
1210 |
||
1211 |
compiler.err.unsupported.underscore.lit=\ |
|
1212 |
underscores in literals are not supported in -source {0}\n\ |
|
1213 |
(use -source 7 or higher to enable underscores in literals) |
|
10 | 1214 |
|
1215 |
compiler.warn.enum.as.identifier=\ |
|
1216 |
as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ |
|
1217 |
(use -source 5 or higher to use ''enum'' as a keyword) |
|
1218 |
||
1219 |
compiler.warn.assert.as.identifier=\ |
|
1220 |
as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ |
|
1221 |
(use -source 1.4 or higher to use ''assert'' as a keyword) |
|
1222 |
||
1223 |
compiler.err.enum.as.identifier=\ |
|
1224 |
as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ |
|
1225 |
(use -source 1.4 or lower to use ''enum'' as an identifier) |
|
1226 |
||
1227 |
compiler.err.assert.as.identifier=\ |
|
1228 |
as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ |
|
1229 |
(use -source 1.3 or lower to use ''assert'' as an identifier) |
|
1230 |
||
1231 |
compiler.err.generics.not.supported.in.source=\ |
|
1232 |
generics are not supported in -source {0}\n\ |
|
1233 |
(use -source 5 or higher to enable generics) |
|
1234 |
||
1235 |
compiler.err.varargs.not.supported.in.source=\ |
|
1236 |
variable-arity methods are not supported in -source {0}\n\ |
|
1237 |
(use -source 5 or higher to enable variable-arity methods) |
|
1238 |
||
1239 |
compiler.err.annotations.not.supported.in.source=\ |
|
1240 |
annotations are not supported in -source {0}\n\ |
|
1241 |
(use -source 5 or higher to enable annotations) |
|
1242 |
||
3149 | 1243 |
compiler.err.type.annotations.not.supported.in.source=\ |
1244 |
type annotations are not supported in -source {0}\n\ |
|
1245 |
(use -source 7 or higher to enable type annotations) |
|
1246 |
||
10 | 1247 |
compiler.err.foreach.not.supported.in.source=\ |
1248 |
for-each loops are not supported in -source {0}\n\ |
|
1249 |
(use -source 5 or higher to enable for-each loops) |
|
1250 |
||
1251 |
compiler.err.static.import.not.supported.in.source=\ |
|
1252 |
static import declarations are not supported in -source {0}\n\ |
|
1253 |
(use -source 5 or higher to enable static import declarations) |
|
1254 |
||
1255 |
compiler.err.enums.not.supported.in.source=\ |
|
1256 |
enums are not supported in -source {0}\n\ |
|
1257 |
(use -source 5 or higher to enable enums) |
|
2984
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1258 |
|
5492
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
5321
diff
changeset
|
1259 |
compiler.err.multicatch.not.supported.in.source=\ |
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
5321
diff
changeset
|
1260 |
multi-catch statement is not supported in -source {0}\n\ |
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
5321
diff
changeset
|
1261 |
(use -source 7 or higher to enable multi-catch statement) |
515e4b33b335
6943289: Project Coin: Improved Exception Handling for Java (aka 'multicatch')
mcimadamore
parents:
5321
diff
changeset
|
1262 |
|
4142 | 1263 |
compiler.err.string.switch.not.supported.in.source=\ |
1264 |
strings in switch are not supported in -source {0}\n\ |
|
1265 |
(use -source 7 or higher to enable strings in switch) |
|
1266 |
||
2984
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1267 |
######################################## |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1268 |
# Diagnostics for where clause implementation |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1269 |
# used by the RichDiagnosticFormatter. |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1270 |
######################################## |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1271 |
|
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1272 |
compiler.misc.type.null=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1273 |
<null> |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1274 |
|
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1275 |
# X#n (where n is an int id) is disambiguated tvar name |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1276 |
compiler.misc.type.var=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1277 |
{0}#{1} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1278 |
|
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1279 |
# CAP#n (where n is an int id) is an abbreviation for 'captured type' |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1280 |
compiler.misc.captured.type=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1281 |
CAP#{0} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1282 |
|
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1283 |
# <INT#n> (where n is an int id) is an abbreviation for 'intersection type' |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1284 |
compiler.misc.intersection.type=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1285 |
INT#{0} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1286 |
|
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1287 |
# where clause for captured type: contains upper ('extends {1}') and lower |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1288 |
# ('super {2}') bound along with the wildcard that generated this captured type ({3}) |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1289 |
compiler.misc.where.captured=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1290 |
{0} extends {1} super: {2} from capture of {3} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1291 |
|
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1292 |
# compact where clause for captured type: contains upper ('extends {1}') along |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1293 |
# with the wildcard that generated this captured type ({3}) |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1294 |
compiler.misc.where.captured.1=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1295 |
{0} extends {1} from capture of {3} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1296 |
|
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1297 |
# where clause for type variable: contains upper bound(s) ('extends {1}') along with |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1298 |
# the kindname ({2}) and location ({3}) in which the typevar has been declared |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1299 |
compiler.misc.where.typevar=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1300 |
{0} extends {1} declared in {2} {3} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1301 |
|
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1302 |
# compact where clause for type variable: contains the kindname ({2}) and location ({3}) |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1303 |
# in which the typevar has been declared |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1304 |
compiler.misc.where.typevar.1=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1305 |
{0} declared in {2} {3} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1306 |
|
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1307 |
# where clause for type variable: contains all the upper bound(s) ('extends {1}') |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1308 |
# of this intersection type |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1309 |
compiler.misc.where.intersection=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1310 |
{0} extends {1} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1311 |
|
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1312 |
### Where clause headers ### |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1313 |
compiler.misc.where.description.captured=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1314 |
where {0} is a fresh type-variable: |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1315 |
compiler.misc.where.description.typevar=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1316 |
where {0} is a type-variable: |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1317 |
compiler.misc.where.description.intersection=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1318 |
where {0} is an intersection type: |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1319 |
compiler.misc.where.description.captured.1=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1320 |
where {0} are fresh type-variables: |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1321 |
compiler.misc.where.description.typevar.1=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1322 |
where {0} are type-variables: |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1323 |
compiler.misc.where.description.intersection.1=\ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1324 |
where {0} are intersection types: |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1325 |
|
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
2723
diff
changeset
|
1326 |