src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties
changeset 51563 de411d537aae
parent 51047 860a3648c494
child 51615 afbb33428df7
equal deleted inserted replaced
51562:1b1bca603244 51563:de411d537aae
    47 # symbol            the name of a declared type
    47 # symbol            the name of a declared type
    48 # symbol kind       the kind of a symbol (i.e. method, variable)
    48 # symbol kind       the kind of a symbol (i.e. method, variable)
    49 # kind name         an informative description of the kind of a declaration; see compiler.misc.kindname.*
    49 # kind name         an informative description of the kind of a declaration; see compiler.misc.kindname.*
    50 # target            a target version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.jvm.Target
    50 # target            a target version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.jvm.Target
    51 # token             the name of a non-terminal in source code; see compiler.misc.token.*
    51 # token             the name of a non-terminal in source code; see compiler.misc.token.*
       
    52 # tree tag          the name of a non-terminal in source code; see compiler.misc.token.*
    52 # type              a Java type; e.g. int, X, X<T>
    53 # type              a Java type; e.g. int, X, X<T>
    53 # url               a URL
    54 # url               a URL
    54 # object            a Java object (unspecified)
    55 # object            a Java object (unspecified)
    55 # unused            the value is not used in this message
    56 # unused            the value is not used in this message
    56 #
    57 #
   185     bad initializer for {0}
   186     bad initializer for {0}
   186 
   187 
   187 compiler.err.break.outside.switch.loop=\
   188 compiler.err.break.outside.switch.loop=\
   188     break outside switch or loop
   189     break outside switch or loop
   189 
   190 
       
   191 compiler.err.break.missing.value=\
       
   192     missing break value
       
   193 
       
   194 compiler.err.break.outside.switch.expression=\
       
   195     break outside of enclosing switch expression
       
   196 
       
   197 compiler.err.continue.outside.switch.expression=\
       
   198     continue outside of enclosing switch expression
       
   199 
       
   200 compiler.err.return.outside.switch.expression=\
       
   201     return outside of enclosing switch expression
       
   202 
       
   203 # 0: name
       
   204 compiler.err.break.ambiguous.target=\
       
   205     ambiguous reference to ''{0}''\n\
       
   206     (''{0}'' is both a label and an expression)
       
   207 
       
   208 # 0: tree tag
       
   209 compiler.err.break.expr.not.immediate=\
       
   210     value break not supported in ''{0}''
       
   211 
       
   212 compiler.err.break.complex.value.no.switch.expression=\
       
   213     unexpected value break
       
   214 
       
   215 compiler.err.switch.expression.empty=\
       
   216     switch expression does not have any case clauses
       
   217 
   190 # 0: name
   218 # 0: name
   191 compiler.err.call.must.be.first.stmt.in.ctor=\
   219 compiler.err.call.must.be.first.stmt.in.ctor=\
   192     call to {0} must be first statement in constructor
   220     call to {0} must be first statement in constructor
   193 
   221 
   194 # 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
   222 # 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
   797     {0} is reserved for internal use
   825     {0} is reserved for internal use
   798 
   826 
   799 compiler.err.native.meth.cant.have.body=\
   827 compiler.err.native.meth.cant.have.body=\
   800     native methods cannot have a body
   828     native methods cannot have a body
   801 
   829 
   802 # 0: type, 1: type
       
   803 compiler.err.neither.conditional.subtype=\
       
   804     incompatible types for ?: neither is a subtype of the other\n\
       
   805     second operand: {0}\n\
       
   806     third operand : {1}
       
   807 
       
   808 
   830 
   809 # 0: message segment
   831 # 0: message segment
   810 compiler.misc.incompatible.type.in.conditional=\
   832 compiler.misc.incompatible.type.in.conditional=\
   811     bad type in conditional expression\n\
   833     bad type in conditional expression\n\
   812     {0}
   834     {0}
   813 
   835 
   814 compiler.misc.conditional.target.cant.be.void=\
   836 compiler.misc.conditional.target.cant.be.void=\
   815     target-type for conditional expression cannot be void
   837     target-type for conditional expression cannot be void
       
   838 
       
   839 compiler.misc.switch.expression.target.cant.be.void=\
       
   840     target-type for switch expression cannot be void
       
   841 
       
   842 # 0: message segment
       
   843 compiler.misc.incompatible.type.in.switch.expression=\
       
   844     bad type in switch expression\n\
       
   845     {0}
   816 
   846 
   817 # 0: message segment
   847 # 0: message segment
   818 compiler.misc.incompatible.ret.type.in.lambda=\
   848 compiler.misc.incompatible.ret.type.in.lambda=\
   819     bad return type in lambda expression\n\
   849     bad return type in lambda expression\n\
   820     {0}
   850     {0}
  1286     cannot infer type arguments for {0}\n\
  1316     cannot infer type arguments for {0}\n\
  1287     reason: {1}
  1317     reason: {1}
  1288 
  1318 
  1289 compiler.err.unreachable.stmt=\
  1319 compiler.err.unreachable.stmt=\
  1290     unreachable statement
  1320     unreachable statement
       
  1321 
       
  1322 compiler.err.not.exhaustive=\
       
  1323     the switch expression does not cover all possible input values
  1291 
  1324 
  1292 compiler.err.initializer.must.be.able.to.complete.normally=\
  1325 compiler.err.initializer.must.be.able.to.complete.normally=\
  1293     initializer must be able to complete normally
  1326     initializer must be able to complete normally
  1294 
  1327 
  1295 compiler.err.initializer.not.allowed=\
  1328 compiler.err.initializer.not.allowed=\
  2577     static initializer
  2610     static initializer
  2578 
  2611 
  2579 compiler.misc.kindname.instance.init=\
  2612 compiler.misc.kindname.instance.init=\
  2580     instance initializer
  2613     instance initializer
  2581 
  2614 
       
  2615 # the following are names of tree kinds:
       
  2616 compiler.misc.tree.tag.forloop=\
       
  2617     for
       
  2618 
       
  2619 compiler.misc.tree.tag.foreachloop=\
       
  2620     for
       
  2621 
       
  2622 compiler.misc.tree.tag.whileloop=\
       
  2623     while
       
  2624 
       
  2625 compiler.misc.tree.tag.doloop=\
       
  2626     do
       
  2627 
       
  2628 compiler.misc.tree.tag.switch=\
       
  2629     switch
       
  2630 
  2582 #####
  2631 #####
  2583 
  2632 
  2584 compiler.misc.no.args=\
  2633 compiler.misc.no.args=\
  2585     no arguments
  2634     no arguments
  2586 
  2635 
  2765 compiler.misc.feature.static.intf.method.invoke=\
  2814 compiler.misc.feature.static.intf.method.invoke=\
  2766     static interface method invocations
  2815     static interface method invocations
  2767 
  2816 
  2768 compiler.misc.feature.private.intf.methods=\
  2817 compiler.misc.feature.private.intf.methods=\
  2769     private interface methods
  2818     private interface methods
       
  2819 
       
  2820 compiler.misc.feature.multiple.case.labels=\
       
  2821     multiple case labels
       
  2822 
       
  2823 compiler.misc.feature.switch.rules=\
       
  2824     switch rules
       
  2825 
       
  2826 compiler.misc.feature.switch.expressions=\
       
  2827     switch expressions
  2770 
  2828 
  2771 compiler.warn.underscore.as.identifier=\
  2829 compiler.warn.underscore.as.identifier=\
  2772     as of release 9, ''_'' is a keyword, and may not be used as an identifier
  2830     as of release 9, ''_'' is a keyword, and may not be used as an identifier
  2773 
  2831 
  2774 compiler.err.underscore.as.identifier=\
  2832 compiler.err.underscore.as.identifier=\
  3255 
  3313 
  3256 # 0: string, 1: string
  3314 # 0: string, 1: string
  3257 compiler.err.illegal.argument.for.option=\
  3315 compiler.err.illegal.argument.for.option=\
  3258     illegal argument for {0}: {1}
  3316     illegal argument for {0}: {1}
  3259 
  3317 
       
  3318 compiler.err.switch.null.not.allowed=\
       
  3319     null label in case is not allowed
       
  3320 
       
  3321 compiler.err.switch.case.unexpected.statement=\
       
  3322     unexpected statement in case, expected is an expression, a block or a throw statement
       
  3323 
       
  3324 compiler.err.switch.mixing.case.types=\
       
  3325     different case kinds used in the switch
  3260 
  3326 
  3261 ############################################
  3327 ############################################
  3262 # messages previouly at javac.properties
  3328 # messages previouly at javac.properties
  3263 
  3329 
  3264 compiler.err.empty.A.argument=\
  3330 compiler.err.empty.A.argument=\