< prev index next >

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

Print this page
rev 51291 : imported patch switch
rev 51292 : [mq]: switch.02


  32 # boolean           true or false
  33 # diagnostic        a sub-message; see compiler.misc.*
  34 # fragment          similar to 'message segment', but with more specific type
  35 # modifier          a Java modifier; e.g. public, private, protected
  36 # file              a file URL
  37 # file object       a file URL - similar to 'file' but typically used for source/class files, hence more specific
  38 # flag              a Flags.Flag instance
  39 # name              a name, typically a Java identifier
  40 # number            an integer
  41 # option name       the name of a command line option
  42 # path              a path
  43 # profile           a profile name
  44 # source            a source version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.code.Source
  45 # source version    a source version number, such as 1.5, 1.6, 1.7, taken from a javax.lang.model.SourceVersion
  46 # string            a general string
  47 # symbol            the name of a declared type
  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.*
  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.*

  52 # type              a Java type; e.g. int, X, X<T>
  53 # url               a URL
  54 # object            a Java object (unspecified)
  55 # unused            the value is not used in this message
  56 #
  57 # The following compound types are also used:
  58 #
  59 # collection of X   a comma-separated collection of items; e.g. collection of type
  60 # list of X         a comma-separated list of items; e.g. list of type
  61 # set of X          a comma-separated set of items; e.g. set of modifier
  62 #
  63 # These may be composed:
  64 #
  65 # list of type or message segment
  66 #
  67 # The following type aliases are supported:
  68 #
  69 # message segment --> diagnostic or fragment
  70 # file name --> file, path or file object
  71 #


 171     array dimension missing
 172 
 173 compiler.err.illegal.array.creation.both.dimension.and.initialization=\
 174     array creation with both dimension expression and initialization is illegal
 175 
 176 # 0: type
 177 compiler.err.array.req.but.found=\
 178     array required, but {0} found
 179 
 180 compiler.err.attribute.value.must.be.constant=\
 181     element value must be a constant expression
 182 
 183 # 0: string (statement type)
 184 compiler.err.bad.initializer=\
 185     bad initializer for {0}
 186 
 187 compiler.err.break.outside.switch.loop=\
 188     break outside switch or loop
 189 
 190 compiler.err.break.missing.value=\
 191     break is missing a value to return from switch expression
 192 
 193 compiler.err.break.outside.switch.expression=\
 194     break is jumping outside of the enclosing switch expression
 195 
 196 compiler.err.continue.outside.switch.expression=\
 197     continue is jumping outside of the enclosing switch expression
 198 
 199 compiler.err.return.outside.switch.expression=\
 200     return is returning outside of the enclosing switch expression
 201 
 202 # 0: name
 203 compiler.err.break.ambiguous.target=\
 204     {0} is ambiguously both a valid expression and a valid label

 205 

 206 compiler.err.break.expr.not.immediate=\
 207     expression break not immediately enclosed by a switch expression
 208 
 209 compiler.err.break.complex.value.no.switch.expression=\
 210     value break outside of switch expression
 211 
 212 compiler.err.switch.expression.empty=\
 213     switch expression does not have any case clauses
 214 
 215 # 0: name
 216 compiler.err.call.must.be.first.stmt.in.ctor=\
 217     call to {0} must be first statement in constructor
 218 
 219 # 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
 220 compiler.err.cant.apply.symbol=\
 221     {0} {1} in {4} {5} cannot be applied to given types;\n\
 222     required: {2}\n\
 223     found: {3}\n\
 224     reason: {6}
 225 
 226 # 0: symbol kind, 1: name, 2: list of type
 227 compiler.err.cant.apply.symbols=\
 228     no suitable {0} found for {1}({2})
 229 
 230 # 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


2591 compiler.misc.kindname.value=\
2592     value
2593 
2594 compiler.misc.kindname.method=\
2595     method
2596 
2597 compiler.misc.kindname.class=\
2598     class
2599 
2600 compiler.misc.kindname.package=\
2601     package
2602 
2603 compiler.misc.kindname.module=\
2604     module
2605 
2606 compiler.misc.kindname.static.init=\
2607     static initializer
2608 
2609 compiler.misc.kindname.instance.init=\
2610     instance initializer
















2611 
2612 #####
2613 
2614 compiler.misc.no.args=\
2615     no arguments
2616 
2617 # 0: message segment
2618 compiler.err.override.static=\
2619     {0}\n\
2620     overriding method is static
2621 
2622 # 0: message segment, 1: set of flag
2623 compiler.err.override.meth=\
2624     {0}\n\
2625     overridden method is {1}
2626 
2627 # 0: message segment, 1: type
2628 compiler.err.override.meth.doesnt.throw=\
2629     {0}\n\
2630     overridden method does not throw {1}




  32 # boolean           true or false
  33 # diagnostic        a sub-message; see compiler.misc.*
  34 # fragment          similar to 'message segment', but with more specific type
  35 # modifier          a Java modifier; e.g. public, private, protected
  36 # file              a file URL
  37 # file object       a file URL - similar to 'file' but typically used for source/class files, hence more specific
  38 # flag              a Flags.Flag instance
  39 # name              a name, typically a Java identifier
  40 # number            an integer
  41 # option name       the name of a command line option
  42 # path              a path
  43 # profile           a profile name
  44 # source            a source version number, such as 1.5, 1.6, 1.7, taken from a com.sun.tools.javac.code.Source
  45 # source version    a source version number, such as 1.5, 1.6, 1.7, taken from a javax.lang.model.SourceVersion
  46 # string            a general string
  47 # symbol            the name of a declared type
  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.*
  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.*
  52 # tree tag          the name of a non-terminal in source code; see compiler.misc.token.*
  53 # type              a Java type; e.g. int, X, X<T>
  54 # url               a URL
  55 # object            a Java object (unspecified)
  56 # unused            the value is not used in this message
  57 #
  58 # The following compound types are also used:
  59 #
  60 # collection of X   a comma-separated collection of items; e.g. collection of type
  61 # list of X         a comma-separated list of items; e.g. list of type
  62 # set of X          a comma-separated set of items; e.g. set of modifier
  63 #
  64 # These may be composed:
  65 #
  66 # list of type or message segment
  67 #
  68 # The following type aliases are supported:
  69 #
  70 # message segment --> diagnostic or fragment
  71 # file name --> file, path or file object
  72 #


 172     array dimension missing
 173 
 174 compiler.err.illegal.array.creation.both.dimension.and.initialization=\
 175     array creation with both dimension expression and initialization is illegal
 176 
 177 # 0: type
 178 compiler.err.array.req.but.found=\
 179     array required, but {0} found
 180 
 181 compiler.err.attribute.value.must.be.constant=\
 182     element value must be a constant expression
 183 
 184 # 0: string (statement type)
 185 compiler.err.bad.initializer=\
 186     bad initializer for {0}
 187 
 188 compiler.err.break.outside.switch.loop=\
 189     break outside switch or loop
 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 
 218 # 0: name
 219 compiler.err.call.must.be.first.stmt.in.ctor=\
 220     call to {0} must be first statement in constructor
 221 
 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
 223 compiler.err.cant.apply.symbol=\
 224     {0} {1} in {4} {5} cannot be applied to given types;\n\
 225     required: {2}\n\
 226     found: {3}\n\
 227     reason: {6}
 228 
 229 # 0: symbol kind, 1: name, 2: list of type
 230 compiler.err.cant.apply.symbols=\
 231     no suitable {0} found for {1}({2})
 232 
 233 # 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


2594 compiler.misc.kindname.value=\
2595     value
2596 
2597 compiler.misc.kindname.method=\
2598     method
2599 
2600 compiler.misc.kindname.class=\
2601     class
2602 
2603 compiler.misc.kindname.package=\
2604     package
2605 
2606 compiler.misc.kindname.module=\
2607     module
2608 
2609 compiler.misc.kindname.static.init=\
2610     static initializer
2611 
2612 compiler.misc.kindname.instance.init=\
2613     instance initializer
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     enhanced 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 
2631 #####
2632 
2633 compiler.misc.no.args=\
2634     no arguments
2635 
2636 # 0: message segment
2637 compiler.err.override.static=\
2638     {0}\n\
2639     overriding method is static
2640 
2641 # 0: message segment, 1: set of flag
2642 compiler.err.override.meth=\
2643     {0}\n\
2644     overridden method is {1}
2645 
2646 # 0: message segment, 1: type
2647 compiler.err.override.meth.doesnt.throw=\
2648     {0}\n\
2649     overridden method does not throw {1}


< prev index next >