langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties
changeset 21009 b35973e2d42e
parent 21006 534673718919
child 21041 99f5e5e97425
equal deleted inserted replaced
21008:af0b915df7cc 21009:b35973e2d42e
    76 compiler.err.already.defined.in.clinit=\
    76 compiler.err.already.defined.in.clinit=\
    77     {0} {1} is already defined in {2} of {3} {4}
    77     {0} {1} is already defined in {2} of {3} {4}
    78 
    78 
    79 # 0: string
    79 # 0: string
    80 compiler.err.already.defined.single.import=\
    80 compiler.err.already.defined.single.import=\
    81     {0} is already defined in a single-type import
    81     a type with the same simple name is already defined by the single-type-import of {0}
    82 
    82 
    83 # 0: string
    83 # 0: string
    84 compiler.err.already.defined.static.single.import=\
    84 compiler.err.already.defined.static.single.import=\
    85     {0} is already defined in a static single-type import
    85     a type with the same simple name is already defined by the static single-type-import of {0}
    86 
    86 
    87 compiler.err.already.defined.this.unit=\
    87 compiler.err.already.defined.this.unit=\
    88     {0} is already defined in this compilation unit
    88     {0} is already defined in this compilation unit
    89 
    89 
    90 # 0: type, 1: list of name
    90 # 0: type, 1: list of name
    91 compiler.err.annotation.missing.default.value=\
    91 compiler.err.annotation.missing.default.value=\
    92     annotation {0} is missing value for the attribute {1}
    92     annotation @{0} is missing a default value for the element ''{1}''
    93 
    93 
    94 # 0: type, 1: list of name
    94 # 0: type, 1: list of name
    95 compiler.err.annotation.missing.default.value.1=\
    95 compiler.err.annotation.missing.default.value.1=\
    96     annotation {0} is missing values for attributes {1}
    96     annotation @{0} is missing default values for elements {1}
    97 
    97 
    98 # 0: type
    98 # 0: type
    99 compiler.err.annotation.not.valid.for.type=\
    99 compiler.err.annotation.not.valid.for.type=\
   100     annotation not valid for a value of type {0}
   100     annotation not valid for an element of type {0}
   101 
   101 
   102 compiler.err.annotation.type.not.applicable=\
   102 compiler.err.annotation.type.not.applicable=\
   103     annotation type not applicable to this kind of declaration
   103     annotation type not applicable to this kind of declaration
   104 
   104 
   105 compiler.err.annotation.value.must.be.annotation=\
   105 compiler.err.annotation.value.must.be.annotation=\
   133 # 0: type
   133 # 0: type
   134 compiler.err.array.req.but.found=\
   134 compiler.err.array.req.but.found=\
   135     array required, but {0} found
   135     array required, but {0} found
   136 
   136 
   137 compiler.err.attribute.value.must.be.constant=\
   137 compiler.err.attribute.value.must.be.constant=\
   138     attribute value must be constant
   138     element value must be a constant expression
   139 
   139 
   140 # 0: statement type
   140 # 0: statement type
   141 compiler.err.bad.initializer=\
   141 compiler.err.bad.initializer=\
   142     bad initializer for {0}
   142     bad initializer for {0}
   143 
   143 
   296 
   296 
   297 # 0: symbol
   297 # 0: symbol
   298 compiler.err.cyclic.inheritance=\
   298 compiler.err.cyclic.inheritance=\
   299     cyclic inheritance involving {0}
   299     cyclic inheritance involving {0}
   300 
   300 
       
   301 # 0: symbol
   301 compiler.err.cyclic.annotation.element=\
   302 compiler.err.cyclic.annotation.element=\
   302     cyclic annotation element type
   303     type of element {0} is cyclic
   303 
   304 
   304 # 0: unused
   305 # 0: unused
   305 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
   306 compiler.err.call.to.super.not.allowed.in.enum.ctor=\
   306     call to super not allowed in enum constructor
   307     call to super not allowed in enum constructor
   307 
   308 
   308 # 0: type
   309 # 0: type
   309 compiler.err.no.superclass=\
   310 compiler.err.no.superclass=\
   310     {0} has no superclass
   311     {0} has no superclass.
   311 
   312 
   312 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
   313 # 0: symbol, 1: type, 2: symbol, 3: type, 4: unused
   313 compiler.err.concrete.inheritance.conflict=\
   314 compiler.err.concrete.inheritance.conflict=\
   314     methods {0} from {1} and {2} from {3} are inherited with the same signature
   315     methods {0} from {1} and {2} from {3} are inherited with the same signature
   315 
   316 
   316 compiler.err.default.allowed.in.intf.annotation.member=\
   317 compiler.err.default.allowed.in.intf.annotation.member=\
   317     default value only allowed in an @interface member
   318     default value only allowed in an annotation type declaration
   318 
   319 
   319 # 0: symbol
   320 # 0: symbol
   320 compiler.err.doesnt.exist=\
   321 compiler.err.doesnt.exist=\
   321     package {0} does not exist
   322     package {0} does not exist
   322 
   323 
   323 compiler.err.duplicate.annotation=\
       
   324     duplicate annotation
       
   325 
       
   326 # 0: type
   324 # 0: type
   327 compiler.err.duplicate.annotation.invalid.repeated=\
   325 compiler.err.duplicate.annotation.invalid.repeated=\
   328     annotation {0} cannot be repeated\nIt does not define a valid containing annotation.
   326     annotation {0} is not a valid repeatable annotation
   329 
   327 
   330 # 0: name, 1: type
   328 # 0: name, 1: type
   331 compiler.err.duplicate.annotation.member.value=\
   329 compiler.err.duplicate.annotation.member.value=\
   332     duplicate annotation member value {0} in {1}
   330     duplicate element ''{0}'' in annotation @{1}.
   333 
   331 
   334 # 0: type, 1: type
   332 # 0: name, 1: unused
   335 compiler.err.duplicate.annotation.missing.container=\
   333 compiler.err.duplicate.annotation.missing.container=\
   336     duplicate annotation: the declaration of {0} does not have a valid {1} annotation
   334     {0} is not a repeatable annotation type
   337 
   335 
   338 # 0: type
   336 # 0: type, 1: unused
   339 compiler.err.invalid.repeatable.annotation=\
   337 compiler.err.invalid.repeatable.annotation=\
   340     duplicate annotation: {0} is annotated with an invalid Repeatable annotation
   338     duplicate annotation: {0} is annotated with an invalid @Repeatable annotation
   341 
   339 
   342 # 0: symbol or type
   340 # 0: symbol or type
   343 compiler.err.invalid.repeatable.annotation.no.value=\
   341 compiler.err.invalid.repeatable.annotation.no.value=\
   344     duplicate annotation: {0} is not a valid Repeatable, no value element method declared
   342     {0} is not a valid @Repeatable, no value element method declared
   345 
   343 
   346 # 0: type, 1: number
   344 # 0: type, 1: number
   347 compiler.err.invalid.repeatable.annotation.multiple.values=\
   345 compiler.err.invalid.repeatable.annotation.multiple.values=\
   348     duplicate annotation: {0} is not a valid Repeatable, {1} value element methods declared
   346     {0} is not a valid @Repeatable, {1} element methods named ''value'' declared
   349 
   347 
   350 # 0: type
   348 # 0: type
   351 compiler.err.invalid.repeatable.annotation.invalid.value=\
   349 compiler.err.invalid.repeatable.annotation.invalid.value=\
   352     duplicate annotation: {0} is not a valid Repeatable: invalid value element
   350     {0} is not a valid @Repeatable: invalid value element
   353 
   351 
   354 # 0: symbol type, 1: type, 2: type
   352 # 0: symbol type, 1: unused, 2: type
   355 compiler.err.invalid.repeatable.annotation.value.return=\
   353 compiler.err.invalid.repeatable.annotation.value.return=\
   356     duplicate annotation: value element of containing annotation {0} should have type {2}, found {1}
   354     containing annotation type ({0}) must declare an element named ''value'' of type {2}
   357 
   355 
   358 # 0: symbol or type, 1: symbol
   356 # 0: symbol or type, 1: symbol
   359 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
   357 compiler.err.invalid.repeatable.annotation.elem.nondefault=\
   360     containing annotation {0} does not have a default value for element {1}
   358     containing annotation type ({0}) does not have a default value for element {1}
   361 
   359 
   362 # 0: symbol, 1: type, 2: symbol, 3: type
   360 # 0: symbol, 1: unused, 2: symbol, 3: unused
   363 compiler.err.invalid.repeatable.annotation.retention=\
   361 compiler.err.invalid.repeatable.annotation.retention=\
   364     containing annotation {0} has shorter retention ({1}) than the contained annotation {2} with retention {3}
   362     retention of containing annotation type ({0}) is shorter than the retention of repeatable annotation type ({2})
   365 
   363 
   366 # 0: symbol, 1: symbol
   364 # 0: symbol, 1: symbol
   367 compiler.err.invalid.repeatable.annotation.not.documented=\
   365 compiler.err.invalid.repeatable.annotation.not.documented=\
   368     containing annotation type, {0}, is not @Documented while repeated annotation type, {1}, is
   366     repeatable annotation type ({1}) is @Documented while containing annotation type ({0}) is not
   369 
   367 
   370 # 0: symbol, 1: symbol
   368 # 0: symbol, 1: symbol
   371 compiler.err.invalid.repeatable.annotation.not.inherited=\
   369 compiler.err.invalid.repeatable.annotation.not.inherited=\
   372     containing annotation type, {0}, is not @Inherited while repeated annotation type, {1}, is
   370     repeatable annotation type ({1}) is @Inherited while containing annotation type ({0}) is not
   373 
   371 
   374 # 0: symbol, 1: symbol
   372 # 0: symbol, 1: symbol
   375 compiler.err.invalid.repeatable.annotation.incompatible.target=\
   373 compiler.err.invalid.repeatable.annotation.incompatible.target=\
   376     target of container annotation {0} is not a subset of target of repeated annotation {1}
   374     containing annotation type ({0}) is applicable to more targets than repeatable annotation type ({1})
   377 
   375 
   378 # 0: symbol
   376 # 0: symbol
   379 compiler.err.invalid.repeatable.annotation.repeated.and.container.present=\
   377 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
   378     container {0} must not be present at the same time as the element it contains
   381 
   379 
   559 # 0: number
   557 # 0: number
   560 compiler.err.int.number.too.large=\
   558 compiler.err.int.number.too.large=\
   561     integer number too large: {0}
   559     integer number too large: {0}
   562 
   560 
   563 compiler.err.intf.annotation.members.cant.have.params=\
   561 compiler.err.intf.annotation.members.cant.have.params=\
   564     @interface members may not have parameters
   562     elements in annotation type declarations cannot declare formal parameters
   565 
   563 
       
   564 # 0: symbol
   566 compiler.err.intf.annotation.cant.have.type.params=\
   565 compiler.err.intf.annotation.cant.have.type.params=\
   567     @interface may not have type parameters
   566     annotation type {0} cannot be generic
   568 
   567 
   569 compiler.err.intf.annotation.members.cant.have.type.params=\
   568 compiler.err.intf.annotation.members.cant.have.type.params=\
   570     @interface members may not have type parameters
   569     elements in annotation type declarations cannot be generic methods
   571 
   570 
   572 # 0: symbol, 1: type
   571 # 0: symbol, 1: type
   573 compiler.err.intf.annotation.member.clash=\
   572 compiler.err.intf.annotation.member.clash=\
   574     @interface member clashes with method ''{0}'' in {1}
   573     annotation type {1} declares an element with the same name as method {0}
   575 
   574 
   576 compiler.err.intf.expected.here=\
   575 compiler.err.intf.expected.here=\
   577     interface expected here
   576     interface expected here
   578 
   577 
       
   578 compiler.err.intf.or.array.expected.here=\
       
   579     interface or array type expected here
       
   580 
   579 compiler.err.intf.meth.cant.have.body=\
   581 compiler.err.intf.meth.cant.have.body=\
   580     interface abstract methods cannot have body
   582     interface abstract methods cannot have body
   581 
   583 
       
   584 # 0: symbol
   582 compiler.err.invalid.annotation.member.type=\
   585 compiler.err.invalid.annotation.member.type=\
   583     invalid type for annotation member
   586     invalid type for element {0} of annotation type
   584 
   587 
   585 compiler.err.invalid.binary.number=\
   588 compiler.err.invalid.binary.number=\
   586     binary numbers must contain at least one binary digit
   589     binary numbers must contain at least one binary digit
   587 
   590 
   588 compiler.err.invalid.hex.number=\
   591 compiler.err.invalid.hex.number=\
  2308 compiler.err.type.annotations.not.supported.in.source=\
  2311 compiler.err.type.annotations.not.supported.in.source=\
  2309     type annotations are not supported in -source {0}\n\
  2312     type annotations are not supported in -source {0}\n\
  2310 (use -source 8 or higher to enable type annotations)
  2313 (use -source 8 or higher to enable type annotations)
  2311 
  2314 
  2312 # 0: string
  2315 # 0: string
       
  2316 compiler.err.repeatable.annotations.not.supported.in.source=\
       
  2317     repeated annotations are not supported in -source {0}\n\
       
  2318 (use -source 8 or higher to enable repeated annotations)
       
  2319 
       
  2320 # 0: string
  2313 compiler.err.foreach.not.supported.in.source=\
  2321 compiler.err.foreach.not.supported.in.source=\
  2314     for-each loops are not supported in -source {0}\n\
  2322     enhanced for loops are not supported in -source {0}\n\
  2315     (use -source 5 or higher to enable for-each loops)
  2323     (use -source 5 or higher to enable for-each loops)
  2316 
  2324 
  2317 # 0: string
  2325 # 0: string
  2318 compiler.err.static.import.not.supported.in.source=\
  2326 compiler.err.static.import.not.supported.in.source=\
  2319     static import declarations are not supported in -source {0}\n\
  2327     static import declarations are not supported in -source {0}\n\