langtools/src/share/classes/com/sun/tools/javac/resources/compiler.properties
changeset 8045 df2ca0edfbaa
parent 8038 4a2973290d71
child 8046 376310825f60
equal deleted inserted replaced
8044:7fd529d4472c 8045:df2ca0edfbaa
   110 compiler.err.cant.inherit.diff.arg=\
   110 compiler.err.cant.inherit.diff.arg=\
   111     {0} cannot be inherited with different arguments: <{1}> and <{2}>
   111     {0} cannot be inherited with different arguments: <{1}> and <{2}>
   112 compiler.err.catch.without.try=\
   112 compiler.err.catch.without.try=\
   113     ''catch'' without ''try''
   113     ''catch'' without ''try''
   114 compiler.err.clash.with.pkg.of.same.name=\
   114 compiler.err.clash.with.pkg.of.same.name=\
   115     {0} clashes with package of same name
   115     {0} {1} clashes with package of same name
   116 compiler.err.const.expr.req=\
   116 compiler.err.const.expr.req=\
   117     constant expression required
   117     constant expression required
   118 compiler.err.enum.const.req=\
       
   119     unqualified enumeration constant name required
       
   120 compiler.err.cont.outside.loop=\
   118 compiler.err.cont.outside.loop=\
   121     continue outside of loop
   119     continue outside of loop
   122 compiler.err.cyclic.inheritance=\
   120 compiler.err.cyclic.inheritance=\
   123     cyclic inheritance involving {0}
   121     cyclic inheritance involving {0}
   124 compiler.err.cyclic.annotation.element=\
   122 compiler.err.cyclic.annotation.element=\
   182 compiler.err.multicatch.parameter.may.not.be.assigned=\
   180 compiler.err.multicatch.parameter.may.not.be.assigned=\
   183     multi-catch parameter {0} may not be assigned
   181     multi-catch parameter {0} may not be assigned
   184 compiler.err.finally.without.try=\
   182 compiler.err.finally.without.try=\
   185     ''finally'' without ''try''
   183     ''finally'' without ''try''
   186 compiler.err.foreach.not.applicable.to.type=\
   184 compiler.err.foreach.not.applicable.to.type=\
   187     foreach not applicable to expression type
   185     for-each not applicable to expression type\n\
       
   186     required: {1}\n\
       
   187     found:    {0}
   188 compiler.err.fp.number.too.large=\
   188 compiler.err.fp.number.too.large=\
   189     floating point number too large
   189     floating point number too large
   190 compiler.err.fp.number.too.small=\
   190 compiler.err.fp.number.too.small=\
   191     floating point number too small
   191     floating point number too small
   192 
   192 
   236 compiler.err.import.requires.canonical=\
   236 compiler.err.import.requires.canonical=\
   237     import requires canonical name for {0}
   237     import requires canonical name for {0}
   238 compiler.err.improperly.formed.type.param.missing=\
   238 compiler.err.improperly.formed.type.param.missing=\
   239     improperly formed type, some parameters are missing
   239     improperly formed type, some parameters are missing
   240 compiler.err.improperly.formed.type.inner.raw.param=\
   240 compiler.err.improperly.formed.type.inner.raw.param=\
   241     improperly formed type, type parameters given on a raw type
   241     improperly formed type, type arguments given on a raw type
   242 compiler.err.incomparable.types=\
   242 compiler.err.incomparable.types=\
   243     incomparable types: {0} and {1}
   243     incomparable types: {0} and {1}
   244 compiler.err.int.number.too.large=\
   244 compiler.err.int.number.too.large=\
   245     integer number too large: {0}
   245     integer number too large: {0}
   246 compiler.err.internal.error.cant.instantiate=\
   246 compiler.err.internal.error.cant.instantiate=\
   352     not a statement
   352     not a statement
   353 compiler.err.not.encl.class=\
   353 compiler.err.not.encl.class=\
   354     not an enclosing class: {0}
   354     not an enclosing class: {0}
   355 
   355 
   356 compiler.err.operator.cant.be.applied=\
   356 compiler.err.operator.cant.be.applied=\
   357     operator {0} cannot be applied to {1}
   357     bad operand type {1} for unary operator ''{0}''
       
   358 compiler.err.operator.cant.be.applied.1=\
       
   359     bad operand types for binary operator ''{0}''\n\
       
   360     first type:  {1}\n\
       
   361     second type: {2}
   358 
   362 
   359 compiler.err.pkg.annotations.sb.in.package-info.java=\
   363 compiler.err.pkg.annotations.sb.in.package-info.java=\
   360     package annotations should be in file package-info.java
   364     package annotations should be in file package-info.java
   361 compiler.err.pkg.clashes.with.class.of.same.name=\
   365 compiler.err.pkg.clashes.with.class.of.same.name=\
   362     package {0} clashes with class of same name
   366     package {0} clashes with class of same name
   479 compiler.err.io.exception=\
   483 compiler.err.io.exception=\
   480     error reading source file: {0}
   484     error reading source file: {0}
   481 compiler.err.undef.label=\
   485 compiler.err.undef.label=\
   482     undefined label: {0}
   486     undefined label: {0}
   483 compiler.err.undetermined.type=\
   487 compiler.err.undetermined.type=\
   484     type parameters of {0} cannot be determined
   488     cannot infer type arguments for {0}
   485 compiler.err.undetermined.type.1=\
   489 compiler.err.undetermined.type.1=\
   486     type parameters of {0} cannot be determined; {1}
   490     cannot infer type arguments for {0};\n\
       
   491     reason: {1}
   487 compiler.err.invalid.inferred.types=\
   492 compiler.err.invalid.inferred.types=\
   488     invalid inferred types for {0}; {1}
   493     invalid inferred types for {0}; {1}
   489 compiler.err.cant.apply.diamond=\
   494 compiler.err.cant.apply.diamond=\
   490     cannot infer type arguments for {0}
   495     cannot infer type arguments for {0}
   491 compiler.err.cant.apply.diamond.1=\
   496 compiler.err.cant.apply.diamond.1=\
   861 compiler.warn.annotation.method.not.found.reason=\
   866 compiler.warn.annotation.method.not.found.reason=\
   862     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
   867     Cannot find annotation method ''{1}()'' in type ''{0}'': {2}
   863 
   868 
   864 compiler.warn.raw.class.use=\
   869 compiler.warn.raw.class.use=\
   865     found raw type: {0}\n\
   870     found raw type: {0}\n\
   866     missing type parameters for generic class {1}
   871     missing type arguments for generic class {1}
   867 
   872 
   868 compiler.warn.diamond.redundant.args=\
   873 compiler.warn.diamond.redundant.args=\
   869     redundant type arguments in new expression (use diamond operator instead).
   874     redundant type arguments in new expression (use diamond operator instead).
   870 compiler.warn.diamond.redundant.args.1=\
   875 compiler.warn.diamond.redundant.args.1=\
   871     redundant type arguments in new expression (use diamond operator instead).\n\
   876     redundant type arguments in new expression (use diamond operator instead).\n\
   989     class file has wrong version {0}.{1}, should be {2}.{3}
   994     class file has wrong version {0}.{1}, should be {2}.{3}
   990 
   995 
   991 #####
   996 #####
   992 
   997 
   993 compiler.err.not.within.bounds=\
   998 compiler.err.not.within.bounds=\
   994     type parameter {0} is not within its bound
   999     type argument {0} is not within bounds of type-variable {1}
   995 
       
   996 compiler.err.not.within.bounds.explain=\
       
   997     type parameter {0} is not within its bound; {1}
       
   998 
  1000 
   999 ## The following are all possible strings for the second argument ({1}) of the
  1001 ## The following are all possible strings for the second argument ({1}) of the
  1000 ## above string.
  1002 ## above string.
  1001 
  1003 
  1002 ## none yet...
  1004 ## none yet...
  1059 ## above string.
  1061 ## above string.
  1060 compiler.misc.type.req.class=\
  1062 compiler.misc.type.req.class=\
  1061     class
  1063     class
  1062 compiler.misc.type.req.class.array=\
  1064 compiler.misc.type.req.class.array=\
  1063     class or array
  1065     class or array
       
  1066 compiler.misc.type.req.array.or.iterable=\
       
  1067     array or java.lang.Iterable
  1064 compiler.misc.type.req.ref=\
  1068 compiler.misc.type.req.ref=\
  1065     reference
  1069     reference
  1066 compiler.misc.type.req.exact=\
  1070 compiler.misc.type.req.exact=\
  1067     class or interface without bounds
  1071     class or interface without bounds
  1068 compiler.misc.type.parameter=\
  1072 compiler.misc.type.parameter=\
  1142 compiler.err.cant.resolve.args.params=\
  1146 compiler.err.cant.resolve.args.params=\
  1143     cannot find symbol\n\
  1147     cannot find symbol\n\
  1144     symbol: {0} <{2}>{1}({3})
  1148     symbol: {0} <{2}>{1}({3})
  1145 
  1149 
  1146 ## arguments from {0} to {3} have the same meaning as above
  1150 ## arguments from {0} to {3} have the same meaning as above
  1147 ## The fifth argument {4} is the location "kindname" (e.g. 'constructor', 'field', etc.)
  1151 ## The fifth argument {4} is a location subdiagnostic (see below)
  1148 ## The sixth argument {5} is the location type
       
  1149 compiler.err.cant.resolve.location=\
  1152 compiler.err.cant.resolve.location=\
  1150     cannot find symbol\n\
  1153     cannot find symbol\n\
  1151     symbol:   {0} {1}\n\
  1154     symbol:   {0} {1}\n\
  1152     location: {4} {5}
  1155     location: {4}
  1153 
  1156 
  1154 compiler.err.cant.resolve.location.args=\
  1157 compiler.err.cant.resolve.location.args=\
  1155     cannot find symbol\n\
  1158     cannot find symbol\n\
  1156     symbol:   {0} {1}({3})\n\
  1159     symbol:   {0} {1}({3})\n\
  1157     location: {4} {5}
  1160     location: {4}
  1158 
  1161 
  1159 compiler.err.cant.resolve.location.args.params=\
  1162 compiler.err.cant.resolve.location.args.params=\
  1160     cannot find symbol\n\
  1163     cannot find symbol\n\
  1161     symbol:   {0} <{2}>{1}({3})\n\
  1164     symbol:   {0} <{2}>{1}({3})\n\
  1162     location: {4} {5}
  1165     location: {4}
       
  1166 
       
  1167 ##a location subdiagnostic is composed as follows:
       
  1168 ## The first argument {0} is the location "kindname" (e.g. 'constructor', 'field', etc.)
       
  1169 ## The second argument {1} is the location name
       
  1170 ## The third argument {2} is the location type (only when {1} is a variable name)
       
  1171 
       
  1172 compiler.misc.location=\
       
  1173     {0} {1}
       
  1174 compiler.misc.location.1=\
       
  1175     {0} {1} of type {2}
  1163 
  1176 
  1164 ## The following are all possible string for "kindname".
  1177 ## The following are all possible string for "kindname".
  1165 ## They should be called whatever the JLS calls them after it been translated
  1178 ## They should be called whatever the JLS calls them after it been translated
  1166 ## to the appropriate language.
  1179 ## to the appropriate language.
  1167 # compiler.misc.kindname.constructor=\
  1180 # compiler.misc.kindname.constructor=\