176 |
176 |
177 # 0: symbol kind, 1: symbol |
177 # 0: symbol kind, 1: symbol |
178 compiler.misc.incompatible.abstracts=\ |
178 compiler.misc.incompatible.abstracts=\ |
179 multiple non-overriding abstract methods found in {0} {1} |
179 multiple non-overriding abstract methods found in {0} {1} |
180 |
180 |
|
181 compiler.err.bad.functional.intf.anno=\ |
|
182 Unexpected @FunctionalInterface annotation |
|
183 |
|
184 # 0: message segment |
|
185 compiler.err.bad.functional.intf.anno.1=\ |
|
186 Unexpected @FunctionalInterface annotation\n\ |
|
187 {0} |
|
188 |
|
189 # 0: symbol |
181 compiler.misc.not.a.functional.intf=\ |
190 compiler.misc.not.a.functional.intf=\ |
182 the target type must be a functional interface |
191 {0} is not a functional interface |
183 |
192 |
184 # 0: message segment |
193 # 0: symbol, 1: message segment |
185 compiler.misc.not.a.functional.intf.1=\ |
194 compiler.misc.not.a.functional.intf.1=\ |
186 the target type must be a functional interface\n\ |
195 {0} is not a functional interface\n\ |
187 {0} |
196 {1} |
188 |
197 |
189 # 0: symbol, 1: symbol kind, 2: symbol |
198 # 0: symbol, 1: symbol kind, 2: symbol |
190 compiler.misc.invalid.generic.lambda.target=\ |
199 compiler.misc.invalid.generic.lambda.target=\ |
191 invalid functional descriptor for lambda expression\n\ |
200 invalid functional descriptor for lambda expression\n\ |
192 method {0} in {1} {2} is generic |
201 method {0} in {1} {2} is generic |
317 |
326 |
318 # 0: type, 1: type |
327 # 0: type, 1: type |
319 compiler.err.duplicate.annotation.missing.container=\ |
328 compiler.err.duplicate.annotation.missing.container=\ |
320 duplicate annotation, the declaration of {0} does not have a valid {1} annotation |
329 duplicate annotation, the declaration of {0} does not have a valid {1} annotation |
321 |
330 |
322 # 0: type, 1: type |
331 # 0: type |
323 compiler.err.invalid.container.no.containedby=\ |
332 compiler.err.invalid.repeatable.annotation=\ |
324 invalid contained repeatable annotation, {0} is not annotated with {1} |
333 duplicate annotation, {0} is annotated with an invalid Repeatable annotation |
325 |
334 |
326 # 0: type, 1: type |
335 # 0: type |
327 compiler.err.invalid.container.wrong.containedby=\ |
336 compiler.err.invalid.repeatable.annotation.no.value=\ |
328 invalid contained repeatable annotation, {0} does not match {1} |
337 duplicate annotation, {0} is not a valid Repeatable, no value element method declared |
329 |
|
330 # 0: type, 1: type |
|
331 compiler.err.invalid.container.no.containerfor=\ |
|
332 invalid container for repeating annotations, {0} is not annotated with {1} |
|
333 |
|
334 # 0: type, 1: type |
|
335 compiler.err.invalid.container.wrong.containerfor=\ |
|
336 invalid container for repeating annotations, {0} does not match {1} |
|
337 |
|
338 # 0: type |
|
339 compiler.err.invalid.containedby.annotation=\ |
|
340 duplicate annotation, {0} is annotated with an invalid ContainedBy annotation |
|
341 |
|
342 # 0: type |
|
343 compiler.err.invalid.containedby.annotation.no.value=\ |
|
344 duplicate annotation, {0} is not a valid ContainedBy, no value element method declared |
|
345 |
338 |
346 # 0: type, 1: number |
339 # 0: type, 1: number |
347 compiler.err.invalid.containedby.annotation.multiple.values=\ |
340 compiler.err.invalid.repeatable.annotation.multiple.values=\ |
348 duplicate annotation, {0} is not a valid ContainedBy, {1} value element methods declared |
341 duplicate annotation, {0} is not a valid Repeatable, {1} value element methods declared |
349 |
342 |
350 # 0: type |
343 # 0: type |
351 compiler.err.invalid.containedby.annotation.invalid.value=\ |
344 compiler.err.invalid.repeatable.annotation.invalid.value=\ |
352 duplicate annotation, {0} is not a valid ContainedBy, invalid value element, need a method |
345 duplicate annotation, {0} is not a valid Repeatable, invalid value element, need a method |
353 |
346 |
354 # 0: type, 1: type, 2: type |
347 # 0: type, 1: type, 2: type |
355 compiler.err.invalid.containedby.annotation.value.return=\ |
348 compiler.err.invalid.repeatable.annotation.value.return=\ |
356 duplicate annotation, value element of containing annotation {0} should have type {2}, found {1} |
349 duplicate annotation, value element of containing annotation {0} should have type {2}, found {1} |
357 |
350 |
358 # 0: type, 1: symbol |
351 # 0: type, 1: symbol |
359 compiler.err.invalid.containedby.annotation.elem.nondefault=\ |
352 compiler.err.invalid.repeatable.annotation.elem.nondefault=\ |
360 containing annotation {0} does not have a default value for element {1} |
353 containing annotation {0} does not have a default value for element {1} |
361 |
354 |
362 # 0: symbol, 1: type, 2: symbol, 3: type |
355 # 0: symbol, 1: type, 2: symbol, 3: type |
363 compiler.err.invalid.containedby.annotation.retention=\ |
356 compiler.err.invalid.repeatable.annotation.retention=\ |
364 containing annotation {0} has shorter retention ({1}) than the contained annotation {2} with retention {3} |
357 containing annotation {0} has shorter retention ({1}) than the contained annotation {2} with retention {3} |
365 |
358 |
366 # 0: symbol, 1: symbol |
359 # 0: symbol, 1: symbol |
367 compiler.err.invalid.containedby.annotation.not.documented=\ |
360 compiler.err.invalid.repeatable.annotation.not.documented=\ |
368 containing annotation type, {0}, is not @Documented while repeated annotation type, {1}, is |
361 containing annotation type, {0}, is not @Documented while repeated annotation type, {1}, is |
369 |
362 |
370 # 0: symbol, 1: symbol |
363 # 0: symbol, 1: symbol |
371 compiler.err.invalid.containedby.annotation.not.inherited=\ |
364 compiler.err.invalid.repeatable.annotation.not.inherited=\ |
372 containing annotation type, {0}, is not @Inherited while repeated annotation type, {1}, is |
365 containing annotation type, {0}, is not @Inherited while repeated annotation type, {1}, is |
373 |
366 |
374 # 0: symbol, 1: symbol |
367 # 0: symbol, 1: symbol |
375 compiler.err.invalid.containedby.annotation.incompatible.target=\ |
368 compiler.err.invalid.repeatable.annotation.incompatible.target=\ |
376 target of container annotation {0} is not a subset of target of repeated annotation {1} |
369 target of container annotation {0} is not a subset of target of repeated annotation {1} |
377 |
370 |
378 # 0: symbol |
371 # 0: symbol |
379 compiler.err.invalid.containedby.annotation.repeated.and.container.present=\ |
372 compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\ |
380 container {0} must not be present at the same time as the element it contains |
373 container {0} must not be present at the same time as the element it contains |
381 |
374 |
382 # 0: name |
375 # 0: name |
383 compiler.err.duplicate.class=\ |
376 compiler.err.duplicate.class=\ |
384 duplicate class: {0} |
377 duplicate class: {0} |
956 {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5} |
949 {0} {1} inherits abstract and default for {2}({3}) from types {4} and {5} |
957 |
950 |
958 # 0: name, 1: kind, 2: symbol |
951 # 0: name, 1: kind, 2: symbol |
959 compiler.err.default.overrides.object.member=\ |
952 compiler.err.default.overrides.object.member=\ |
960 default method {0} in {1} {2} overrides a member of java.lang.Object |
953 default method {0} in {1} {2} overrides a member of java.lang.Object |
|
954 |
|
955 # 0: type |
|
956 compiler.err.illegal.static.intf.meth.call=\ |
|
957 illegal static interface method call\n\ |
|
958 the receiver expression should be replaced with the type qualifier ''{0}'' |
961 |
959 |
962 # 0: type, 1: message segment |
960 # 0: type, 1: message segment |
963 compiler.err.illegal.default.super.call=\ |
961 compiler.err.illegal.default.super.call=\ |
964 bad type qualifier {0} in default super call\n\ |
962 bad type qualifier {0} in default super call\n\ |
965 {1} |
963 {1} |
2141 |
2142 |
2142 compiler.warn.assert.as.identifier=\ |
2143 compiler.warn.assert.as.identifier=\ |
2143 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ |
2144 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ |
2144 (use -source 1.4 or higher to use ''assert'' as a keyword) |
2145 (use -source 1.4 or higher to use ''assert'' as a keyword) |
2145 |
2146 |
|
2147 compiler.warn.underscore.as.identifier=\ |
|
2148 ''_'' used as an identifier\n\ |
|
2149 (use of ''_'' as an identifier might not be supported in future releases) |
|
2150 |
2146 compiler.err.enum.as.identifier=\ |
2151 compiler.err.enum.as.identifier=\ |
2147 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ |
2152 as of release 5, ''enum'' is a keyword, and may not be used as an identifier\n\ |
2148 (use -source 1.4 or lower to use ''enum'' as an identifier) |
2153 (use -source 1.4 or lower to use ''enum'' as an identifier) |
2149 |
2154 |
2150 compiler.err.assert.as.identifier=\ |
2155 compiler.err.assert.as.identifier=\ |
2151 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ |
2156 as of release 1.4, ''assert'' is a keyword, and may not be used as an identifier\n\ |
2152 (use -source 1.3 or lower to use ''assert'' as an identifier) |
2157 (use -source 1.3 or lower to use ''assert'' as an identifier) |
2153 |
2158 |
|
2159 # TODO 308: make a better error message |
|
2160 compiler.err.this.as.identifier=\ |
|
2161 as of release 8, ''this'' is allowed as the parameter name for the receiver type only, which has to be the first parameter |
|
2162 |
|
2163 # TODO 308: make a better error message |
|
2164 compiler.err.cant.annotate.static.class=\ |
|
2165 enclosing static nested class cannot be annotated |
|
2166 # TODO 308: make a better error message |
|
2167 compiler.err.cant.annotate.nested.type=\ |
|
2168 nested type cannot be annotated |
|
2169 |
|
2170 compiler.err.incorrect.receiver.type=\ |
|
2171 the receiver type does not match the enclosing class type |
|
2172 |
|
2173 compiler.err.no.annotations.on.dot.class=\ |
|
2174 no annotations are allowed in the type of a class literal |
|
2175 |
2154 # 0: string |
2176 # 0: string |
2155 compiler.err.generics.not.supported.in.source=\ |
2177 compiler.err.generics.not.supported.in.source=\ |
2156 generics are not supported in -source {0}\n\ |
2178 generics are not supported in -source {0}\n\ |
2157 (use -source 5 or higher to enable generics) |
2179 (use -source 5 or higher to enable generics) |
2158 |
2180 |