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

changeset 1570
f91144b7da75
parent 1569
475eb15dfdad
parent 1521
71f35e4b93a5
child 1603
6118072811e5
equal deleted inserted replaced
1569:475eb15dfdad 1570:f91144b7da75
1 # 1 #
2 # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 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 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this 7 # published by the Free Software Foundation. Oracle designates this
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}
1670 bad constant pool tag: {0} at {1} 1668 bad constant pool tag: {0} at {1}
1671 1669
1672 compiler.misc.bad.signature=\ 1670 compiler.misc.bad.signature=\
1673 bad signature: {0} 1671 bad signature: {0}
1674 1672
1673 compiler.misc.bad.type.annotation.value=\
1674 bad type annotation target type value: {0}
1675
1675 compiler.misc.class.file.wrong.class=\ 1676 compiler.misc.class.file.wrong.class=\
1676 class file contains wrong class: {0} 1677 class file contains wrong class: {0}
1677 1678
1678 compiler.misc.class.file.not.found=\ 1679 compiler.misc.class.file.not.found=\
1679 class file for {0} not found 1680 class file for {0} not found
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
2164 # 0: string 2186 # 0: string
2165 compiler.err.annotations.not.supported.in.source=\ 2187 compiler.err.annotations.not.supported.in.source=\
2166 annotations are not supported in -source {0}\n\ 2188 annotations are not supported in -source {0}\n\
2167 (use -source 5 or higher to enable annotations) 2189 (use -source 5 or higher to enable annotations)
2168 2190
2169 #308 compiler.err.type.annotations.not.supported.in.source=\ 2191 # 0: string
2170 #308 type annotations are not supported in -source {0}\n\ 2192 compiler.err.type.annotations.not.supported.in.source=\
2171 #308 (use -source 7 or higher to enable type annotations) 2193 type annotations are not supported in -source {0}\n\
2194 (use -source 8 or higher to enable type annotations)
2172 2195
2173 # 0: string 2196 # 0: string
2174 compiler.err.foreach.not.supported.in.source=\ 2197 compiler.err.foreach.not.supported.in.source=\
2175 for-each loops are not supported in -source {0}\n\ 2198 for-each loops are not supported in -source {0}\n\
2176 (use -source 5 or higher to enable for-each loops) 2199 (use -source 5 or higher to enable for-each loops)
2217 2240
2218 # 0: string 2241 # 0: string
2219 compiler.err.intersection.types.in.cast.not.supported.in.source=\ 2242 compiler.err.intersection.types.in.cast.not.supported.in.source=\
2220 intersection types in cast are not supported in -source {0}\n\ 2243 intersection types in cast are not supported in -source {0}\n\
2221 (use -source 8 or higher to enable default methods) 2244 (use -source 8 or higher to enable default methods)
2245
2246 # 0: string
2247 compiler.err.static.intf.methods.not.supported.in.source=\
2248 static interface methods are not supported in -source {0}\n\
2249 (use -source 8 or higher to enable static interface methods)
2222 2250
2223 ######################################## 2251 ########################################
2224 # Diagnostics for verbose resolution 2252 # Diagnostics for verbose resolution
2225 # used by Resolve (debug only) 2253 # used by Resolve (debug only)
2226 ######################################## 2254 ########################################

mercurial