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

Print this page




  61 # 0: symbol
  62 compiler.err.abstract.cant.be.instantiated=\
  63     {0} is abstract; cannot be instantiated
  64 
  65 compiler.err.abstract.meth.cant.have.body=\
  66     abstract methods cannot have a body
  67 
  68 compiler.err.already.annotated=\
  69     {0} {1} has already been annotated
  70 
  71 # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol
  72 compiler.err.already.defined=\
  73     {0} {1} is already defined in {2} {3}
  74 
  75 # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol kind, 4: symbol
  76 compiler.err.already.defined.in.clinit=\
  77     {0} {1} is already defined in {2} of {3} {4}
  78 
  79 # 0: string
  80 compiler.err.already.defined.single.import=\
  81     {0} is already defined in a single-type import
  82 
  83 # 0: string
  84 compiler.err.already.defined.static.single.import=\
  85     {0} is already defined in a static single-type import
  86 
  87 compiler.err.already.defined.this.unit=\
  88     {0} is already defined in this compilation unit
  89 
  90 # 0: type, 1: list of name
  91 compiler.err.annotation.missing.default.value=\
  92     annotation {0} is missing value for the attribute {1}
  93 
  94 # 0: type, 1: list of name
  95 compiler.err.annotation.missing.default.value.1=\
  96     annotation {0} is missing values for attributes {1}
  97 
  98 # 0: type
  99 compiler.err.annotation.not.valid.for.type=\
 100     annotation not valid for a value of type {0}
 101 
 102 compiler.err.annotation.type.not.applicable=\
 103     annotation type not applicable to this kind of declaration
 104 
 105 compiler.err.annotation.value.must.be.annotation=\
 106     annotation value must be an annotation
 107 
 108 compiler.err.annotation.value.must.be.class.literal=\
 109     annotation value must be a class literal
 110 
 111 compiler.err.annotation.value.must.be.name.value=\
 112     annotation values must be of the form ''name=value''
 113 
 114 compiler.err.annotation.value.not.allowable.type=\
 115     annotation value not of an allowable type
 116 
 117 compiler.err.anon.class.impl.intf.no.args=\
 118     anonymous class implements interface; cannot have arguments
 119 
 120 compiler.err.anon.class.impl.intf.no.typeargs=\
 121     anonymous class implements interface; cannot have type arguments
 122 
 123 compiler.err.anon.class.impl.intf.no.qual.for.new=\
 124     anonymous class implements interface; cannot have qualifier for new
 125 
 126 # 0: symbol, 1: symbol, 2: symbol
 127 compiler.err.array.and.varargs=\
 128     cannot declare both {0} and {1} in {2}
 129 
 130 compiler.err.array.dimension.missing=\
 131     array dimension missing
 132 
 133 # 0: type
 134 compiler.err.array.req.but.found=\
 135     array required, but {0} found
 136 
 137 compiler.err.attribute.value.must.be.constant=\
 138     attribute value must be constant
 139 
 140 # 0: statement type
 141 compiler.err.bad.initializer=\
 142     bad initializer for {0}
 143 
 144 compiler.err.break.outside.switch.loop=\
 145     break outside switch or loop
 146 
 147 # 0: name
 148 compiler.err.call.must.be.first.stmt.in.ctor=\
 149     call to {0} must be first statement in constructor
 150 
 151 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
 152 compiler.err.cant.apply.symbol=\
 153     {0} {1} in {4} {5} cannot be applied to given types;\n\
 154     required: {2}\n\
 155     found: {3}\n\
 156     reason: {6}
 157 
 158 # 0: symbol kind, 1: name, 2: list of type


 282     ''catch'' without ''try''
 283 
 284 # 0: symbol kind, 1: symbol
 285 compiler.err.clash.with.pkg.of.same.name=\
 286     {0} {1} clashes with package of same name
 287 
 288 compiler.err.class.not.allowed=\
 289     class, interface or enum declaration not allowed here
 290 
 291 compiler.err.const.expr.req=\
 292     constant expression required
 293 
 294 compiler.err.cont.outside.loop=\
 295     continue outside of loop
 296 
 297 # 0: symbol
 298 compiler.err.cyclic.inheritance=\
 299     cyclic inheritance involving {0}
 300 
 301 compiler.err.cyclic.annotation.element=\
 302     cyclic annotation element type
 303 
 304 # 0: unused
 305 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
 306     call to super not allowed in enum constructor
 307 
 308 # 0: type
 309 compiler.err.no.superclass=\
 310     {0} has no superclass
 311 
 312 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
 313 compiler.err.concrete.inheritance.conflict=\
 314     methods {0} from {1} and {2} from {3} are inherited with the same signature
 315 
 316 compiler.err.default.allowed.in.intf.annotation.member=\
 317     default value only allowed in an @interface member
 318 
 319 # 0: symbol
 320 compiler.err.doesnt.exist=\
 321     package {0} does not exist
 322 
 323 compiler.err.duplicate.annotation=\
 324     duplicate annotation
 325 
 326 # 0: type
 327 compiler.err.duplicate.annotation.invalid.repeated=\
 328     annotation {0} cannot be repeated\nIt does not define a valid containing annotation.
 329 
 330 # 0: name, 1: type
 331 compiler.err.duplicate.annotation.member.value=\
 332     duplicate annotation member value {0} in {1}
 333 
 334 # 0: type, 1: type
 335 compiler.err.duplicate.annotation.missing.container=\
 336     duplicate annotation: the declaration of {0} does not have a valid {1} annotation
 337 
 338 # 0: type
 339 compiler.err.invalid.repeatable.annotation=\
 340     duplicate annotation: {0} is annotated with an invalid Repeatable annotation
 341 
 342 # 0: symbol or type
 343 compiler.err.invalid.repeatable.annotation.no.value=\
 344     duplicate annotation: {0} is not a valid Repeatable, no value element method declared
 345 
 346 # 0: type, 1: number
 347 compiler.err.invalid.repeatable.annotation.multiple.values=\
 348     duplicate annotation: {0} is not a valid Repeatable, {1} value element methods declared
 349 
 350 # 0: type
 351 compiler.err.invalid.repeatable.annotation.invalid.value=\
 352     duplicate annotation: {0} is not a valid Repeatable: invalid value element
 353 
 354 # 0: symbol type, 1: type, 2: type
 355 compiler.err.invalid.repeatable.annotation.value.return=\
 356     duplicate annotation: value element of containing annotation {0} should have type {2}, found {1}
 357 
 358 # 0: symbol or type, 1: symbol
 359 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
 360     containing annotation {0} does not have a default value for element {1}
 361 
 362 # 0: symbol, 1: type, 2: symbol, 3: type
 363 compiler.err.invalid.repeatable.annotation.retention=\
 364     containing annotation {0} has shorter retention ({1}) than the contained annotation {2} with retention {3}
 365 
 366 # 0: symbol, 1: symbol
 367 compiler.err.invalid.repeatable.annotation.not.documented=\
 368     containing annotation type, {0}, is not @Documented while repeated annotation type, {1}, is
 369 
 370 # 0: symbol, 1: symbol
 371 compiler.err.invalid.repeatable.annotation.not.inherited=\
 372     containing annotation type, {0}, is not @Inherited while repeated annotation type, {1}, is
 373 
 374 # 0: symbol, 1: symbol
 375 compiler.err.invalid.repeatable.annotation.incompatible.target=\
 376     target of container annotation {0} is not a subset of target of repeated annotation {1}
 377 
 378 # 0: symbol
 379 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
 381 
 382 # 0: name
 383 compiler.err.duplicate.class=\
 384     duplicate class: {0}
 385 
 386 compiler.err.duplicate.case.label=\
 387     duplicate case label
 388 
 389 compiler.err.duplicate.default.label=\
 390     duplicate default label
 391 
 392 compiler.err.else.without.if=\
 393     ''else'' without ''if''
 394 
 395 compiler.err.empty.char.lit=\
 396     empty character literal


 544 
 545 # 0: symbol
 546 compiler.err.import.requires.canonical=\
 547     import requires canonical name for {0}
 548 
 549 compiler.err.improperly.formed.type.param.missing=\
 550     improperly formed type, some parameters are missing
 551 
 552 compiler.err.improperly.formed.type.inner.raw.param=\
 553     improperly formed type, type arguments given on a raw type
 554 
 555 # 0: type, 1: type
 556 compiler.err.incomparable.types=\
 557     incomparable types: {0} and {1}
 558 
 559 # 0: number
 560 compiler.err.int.number.too.large=\
 561     integer number too large: {0}
 562 
 563 compiler.err.intf.annotation.members.cant.have.params=\
 564     @interface members may not have parameters
 565 
 566 compiler.err.intf.annotation.cant.have.type.params=\
 567     @interface may not have type parameters
 568 
 569 compiler.err.intf.annotation.members.cant.have.type.params=\
 570     @interface members may not have type parameters
 571 
 572 # 0: symbol, 1: type
 573 compiler.err.intf.annotation.member.clash=\
 574     @interface member clashes with method ''{0}'' in {1}
 575 
 576 compiler.err.intf.expected.here=\
 577     interface expected here
 578 



 579 compiler.err.intf.meth.cant.have.body=\
 580     interface abstract methods cannot have body
 581 
 582 compiler.err.invalid.annotation.member.type=\
 583     invalid type for annotation member
 584 
 585 compiler.err.invalid.binary.number=\
 586     binary numbers must contain at least one binary digit
 587 
 588 compiler.err.invalid.hex.number=\
 589     hexadecimal numbers must contain at least one hexadecimal digit
 590 
 591 compiler.err.invalid.meth.decl.ret.type.req=\
 592     invalid method declaration; return type required
 593 
 594 compiler.err.varargs.and.old.array.syntax=\
 595     legacy array notation not allowed on variable-arity parameter
 596 
 597 compiler.err.varargs.and.receiver =\
 598     varargs notation not allowed on receiver parameter
 599 
 600 compiler.err.array.and.receiver =\
 601     legacy array notation not allowed on receiver parameter
 602 
 603 compiler.err.variable.not.allowed=\


2277     no annotations are allowed in the type of a class literal
2278 
2279 # 0: string
2280 compiler.err.generics.not.supported.in.source=\
2281     generics are not supported in -source {0}\n\
2282     (use -source 5 or higher to enable generics)
2283 
2284 # 0: string
2285 compiler.err.varargs.not.supported.in.source=\
2286     variable-arity methods are not supported in -source {0}\n\
2287     (use -source 5 or higher to enable variable-arity methods)
2288 
2289 # 0: string
2290 compiler.err.annotations.not.supported.in.source=\
2291     annotations are not supported in -source {0}\n\
2292     (use -source 5 or higher to enable annotations)
2293 
2294 # 0: string
2295 compiler.err.type.annotations.not.supported.in.source=\
2296     type annotations are not supported in -source {0}\n\





2297 (use -source 8 or higher to enable type annotations)
2298 
2299 # 0: string
2300 compiler.err.foreach.not.supported.in.source=\
2301     for-each loops are not supported in -source {0}\n\
2302     (use -source 5 or higher to enable for-each loops)
2303 
2304 # 0: string
2305 compiler.err.static.import.not.supported.in.source=\
2306     static import declarations are not supported in -source {0}\n\
2307     (use -source 5 or higher to enable static import declarations)
2308 
2309 # 0: string
2310 compiler.err.enums.not.supported.in.source=\
2311     enums are not supported in -source {0}\n\
2312     (use -source 5 or higher to enable enums)
2313 
2314 # 0: string
2315 compiler.err.diamond.not.supported.in.source=\
2316     diamond operator is not supported in -source {0}\n\




  61 # 0: symbol
  62 compiler.err.abstract.cant.be.instantiated=\
  63     {0} is abstract; cannot be instantiated
  64 
  65 compiler.err.abstract.meth.cant.have.body=\
  66     abstract methods cannot have a body
  67 
  68 compiler.err.already.annotated=\
  69     {0} {1} has already been annotated
  70 
  71 # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol
  72 compiler.err.already.defined=\
  73     {0} {1} is already defined in {2} {3}
  74 
  75 # 0: symbol kind, 1: symbol, 2: symbol kind, 3: symbol kind, 4: symbol
  76 compiler.err.already.defined.in.clinit=\
  77     {0} {1} is already defined in {2} of {3} {4}
  78 
  79 # 0: string
  80 compiler.err.already.defined.single.import=\
  81     a type with simple name {0} is already defined in a single-type-import
  82 
  83 # 0: string
  84 compiler.err.already.defined.static.single.import=\
  85     a type with simple name {0} is already defined in a static single-type-import
  86 
  87 compiler.err.already.defined.this.unit=\
  88     {0} is already defined in this compilation unit
  89 
  90 # 0: type, 1: list of name
  91 compiler.err.annotation.missing.default.value=\
  92     annotation @{0} is missing a default value for the element '{1}'
  93 
  94 # 0: type, 1: list of name
  95 compiler.err.annotation.missing.default.value.1=\
  96     annotation @{0} is missing default values for elements {1}
  97 
  98 # 0: type
  99 compiler.err.annotation.not.valid.for.type=\
 100     annotation not valid for an element of type {0}
 101 
 102 compiler.err.annotation.type.not.applicable=\
 103     annotation type not applicable to this kind of declaration
 104 
 105 compiler.err.annotation.value.must.be.annotation=\
 106     annotation value must be an annotation
 107 
 108 compiler.err.annotation.value.must.be.class.literal=\
 109     annotation value must be a class literal
 110 
 111 compiler.err.annotation.value.must.be.name.value=\
 112     annotation values must be of the form ''name=value''
 113 
 114 compiler.err.annotation.value.not.allowable.type=\
 115     annotation value not of an allowable type
 116 
 117 compiler.err.anon.class.impl.intf.no.args=\
 118     anonymous class implements interface; cannot have arguments
 119 
 120 compiler.err.anon.class.impl.intf.no.typeargs=\
 121     anonymous class implements interface; cannot have type arguments
 122 
 123 compiler.err.anon.class.impl.intf.no.qual.for.new=\
 124     anonymous class implements interface; cannot have qualifier for new
 125 
 126 # 0: symbol, 1: symbol, 2: symbol
 127 compiler.err.array.and.varargs=\
 128     cannot declare both {0} and {1} in {2}
 129 
 130 compiler.err.array.dimension.missing=\
 131     array dimension missing
 132 
 133 # 0: type
 134 compiler.err.array.req.but.found=\
 135     array required, but {0} found
 136 
 137 compiler.err.attribute.value.must.be.constant=\
 138     element value must be a constant expression
 139 
 140 # 0: statement type
 141 compiler.err.bad.initializer=\
 142     bad initializer for {0}
 143 
 144 compiler.err.break.outside.switch.loop=\
 145     break outside switch or loop
 146 
 147 # 0: name
 148 compiler.err.call.must.be.first.stmt.in.ctor=\
 149     call to {0} must be first statement in constructor
 150 
 151 # 0: symbol kind, 1: name, 2: list of type or message segment, 3: list of type or message segment, 4: symbol kind, 5: type, 6: message segment
 152 compiler.err.cant.apply.symbol=\
 153     {0} {1} in {4} {5} cannot be applied to given types;\n\
 154     required: {2}\n\
 155     found: {3}\n\
 156     reason: {6}
 157 
 158 # 0: symbol kind, 1: name, 2: list of type


 282     ''catch'' without ''try''
 283 
 284 # 0: symbol kind, 1: symbol
 285 compiler.err.clash.with.pkg.of.same.name=\
 286     {0} {1} clashes with package of same name
 287 
 288 compiler.err.class.not.allowed=\
 289     class, interface or enum declaration not allowed here
 290 
 291 compiler.err.const.expr.req=\
 292     constant expression required
 293 
 294 compiler.err.cont.outside.loop=\
 295     continue outside of loop
 296 
 297 # 0: symbol
 298 compiler.err.cyclic.inheritance=\
 299     cyclic inheritance involving {0}
 300 
 301 compiler.err.cyclic.annotation.element=\
 302     type of element '{0}' is cyclic
 303 
 304 # 0: unused
 305 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
 306     call to super not allowed in enum constructor
 307 
 308 # 0: type
 309 compiler.err.no.superclass=\
 310     {0} has no superclass.
 311 
 312 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
 313 compiler.err.concrete.inheritance.conflict=\
 314     methods {0} from {1} and {2} from {3} are inherited with the same signature
 315 
 316 compiler.err.default.allowed.in.intf.annotation.member=\
 317     default value only allowed in an annotation type declaration
 318 
 319 # 0: symbol
 320 compiler.err.doesnt.exist=\
 321     package {0} does not exist
 322 
 323 compiler.err.duplicate.annotation=\
 324     duplicate annotation
 325 
 326 # 0: type
 327 compiler.err.duplicate.annotation.invalid.repeated=\
 328     annotation {0} cannot be repeated\nIt does not define a valid containing annotation
 329 
 330 # 0: name, 1: type
 331 compiler.err.annotation.duplicate.element=\
 332     duplicate element '{0}' in annotation @{1}.
 333 
 334 # 0: type, 1: type
 335 compiler.err.duplicate.annotation.missing.containing.type=\
 336     duplicate annotation: {0} is not a Repeatable annotation type
 337 
 338 # 0: type
 339 compiler.err.invalid.repeatable.annotation=\
 340     duplicate annotation: {0} is annotated with an invalid Repeatable annotation
 341 
 342 # 0: symbol or type
 343 compiler.err.invalid.repeatable.annotation.no.value=\
 344     duplicate annotation: {0} is not a valid Repeatable, no value element method declared
 345 
 346 # 0: type, 1: number
 347 compiler.err.invalid.repeatable.annotation.multiple.values=\
 348     duplicate annotation: {0} is not a valid Repeatable, {1} value element methods declared
 349 
 350 # 0: type
 351 compiler.err.invalid.repeatable.annotation.invalid.value=\
 352     duplicate annotation: {0} is not a valid Repeatable: invalid value element
 353 
 354 # 0: symbol type, 1: type, 2: type
 355 compiler.err.invalid.repeatable.annotation.value.return=\
 356     duplicate annotation: containing annotation ({0}) must declare a 'value' element of type {2}
 357 
 358 # 0: symbol or type, 1: symbol
 359 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
 360     containing annotation type ({0}) does not have a default value for element {1}
 361 
 362 # 0: symbol, 1: type, 2: symbol, 3: type
 363 compiler.err.invalid.repeatable.annotation.retention=\
 364     retention of containing annotation ({0}) is shorter retention than the retention of repeatable annotation type ({2})
 365 
 366 # 0: symbol, 1: symbol
 367 compiler.err.invalid.repeatable.annotation.not.documented=\
 368     repeatable annotation type ({1}) is @Documented while containing annotation type ({0}) is not
 369 
 370 # 0: symbol, 1: symbol
 371 compiler.err.invalid.repeatable.annotation.not.inherited=\
 372     repeatable annotation type ({1}) is @Inherited while containing annotation type ({0}) is not
 373 
 374 # 0: symbol, 1: symbol
 375 compiler.err.invalid.repeatable.annotation.incompatible.target=\
 376     containing annotation ({0}) is applicable to more targets than repeatable annotation type ({1})
 377 
 378 # 0: symbol
 379 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
 381 
 382 # 0: name
 383 compiler.err.duplicate.class=\
 384     duplicate class: {0}
 385 
 386 compiler.err.duplicate.case.label=\
 387     duplicate case label
 388 
 389 compiler.err.duplicate.default.label=\
 390     duplicate default label
 391 
 392 compiler.err.else.without.if=\
 393     ''else'' without ''if''
 394 
 395 compiler.err.empty.char.lit=\
 396     empty character literal


 544 
 545 # 0: symbol
 546 compiler.err.import.requires.canonical=\
 547     import requires canonical name for {0}
 548 
 549 compiler.err.improperly.formed.type.param.missing=\
 550     improperly formed type, some parameters are missing
 551 
 552 compiler.err.improperly.formed.type.inner.raw.param=\
 553     improperly formed type, type arguments given on a raw type
 554 
 555 # 0: type, 1: type
 556 compiler.err.incomparable.types=\
 557     incomparable types: {0} and {1}
 558 
 559 # 0: number
 560 compiler.err.int.number.too.large=\
 561     integer number too large: {0}
 562 
 563 compiler.err.intf.annotation.members.cant.have.params=\
 564     elements in annotation type declarations cannot declare formal parameters
 565 
 566 compiler.err.intf.annotation.cant.have.type.params=\
 567     annotation type @{0} cannot be generic
 568 
 569 compiler.err.intf.annotation.members.cant.have.type.params=\
 570     elements in annotation type declarations cannot be generic methods
 571 
 572 # 0: symbol, 1: type
 573 compiler.err.intf.annotation.member.clash=\
 574     annotation type @{1} declares an element with the same name as method {0}
 575 
 576 compiler.err.intf.expected.here=\
 577     interface expected here
 578 
 579 compiler.err.intf.or.array.expected.here=\
 580     interface or array type expected here
 581 
 582 compiler.err.intf.meth.cant.have.body=\
 583     interface abstract methods cannot have body
 584 
 585 compiler.err.annotation.invalid.element.type=\
 586     invalid type for element {0} of annotation type
 587 
 588 compiler.err.invalid.binary.number=\
 589     binary numbers must contain at least one binary digit
 590 
 591 compiler.err.invalid.hex.number=\
 592     hexadecimal numbers must contain at least one hexadecimal digit
 593 
 594 compiler.err.invalid.meth.decl.ret.type.req=\
 595     invalid method declaration; return type required
 596 
 597 compiler.err.varargs.and.old.array.syntax=\
 598     legacy array notation not allowed on variable-arity parameter
 599 
 600 compiler.err.varargs.and.receiver =\
 601     varargs notation not allowed on receiver parameter
 602 
 603 compiler.err.array.and.receiver =\
 604     legacy array notation not allowed on receiver parameter
 605 
 606 compiler.err.variable.not.allowed=\


2280     no annotations are allowed in the type of a class literal
2281 
2282 # 0: string
2283 compiler.err.generics.not.supported.in.source=\
2284     generics are not supported in -source {0}\n\
2285     (use -source 5 or higher to enable generics)
2286 
2287 # 0: string
2288 compiler.err.varargs.not.supported.in.source=\
2289     variable-arity methods are not supported in -source {0}\n\
2290     (use -source 5 or higher to enable variable-arity methods)
2291 
2292 # 0: string
2293 compiler.err.annotations.not.supported.in.source=\
2294     annotations are not supported in -source {0}\n\
2295     (use -source 5 or higher to enable annotations)
2296 
2297 # 0: string
2298 compiler.err.type.annotations.not.supported.in.source=\
2299     type annotations are not supported in -source {0}\n\
2300 (use -source 8 or higher to enable type annotations)
2301 
2302 # 0: string
2303 compiler.err.repeatable.annotations.not.supported.in.source=\
2304     repeatable annotations are not supported in -source {0}\n\
2305 (use -source 8 or higher to enable type annotations)
2306 
2307 # 0: string
2308 compiler.err.foreach.not.supported.in.source=\
2309     for-each loops are not supported in -source {0}\n\
2310     (use -source 5 or higher to enable for-each loops)
2311 
2312 # 0: string
2313 compiler.err.static.import.not.supported.in.source=\
2314     static import declarations are not supported in -source {0}\n\
2315     (use -source 5 or higher to enable static import declarations)
2316 
2317 # 0: string
2318 compiler.err.enums.not.supported.in.source=\
2319     enums are not supported in -source {0}\n\
2320     (use -source 5 or higher to enable enums)
2321 
2322 # 0: string
2323 compiler.err.diamond.not.supported.in.source=\
2324     diamond operator is not supported in -source {0}\n\