home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 14 / CDACTUAL.iso / progs / java.exe / Java WorkShop / data.3 / JWS / lib / javac.messages < prev    next >
Encoding:
Text File  |  1997-05-19  |  13.1 KB  |  264 lines

  1. #
  2. # Error message database
  3. #
  4. # Format:
  5. #    leading space is allowed
  6. #    blank lines are allowed
  7. #    if the first non-blank character is #, the line is a comment
  8. #    messages are:
  9. #        name (any character but left paren, equal sign or white space)
  10. #        optional white space
  11. #        if substitutes appear in the message, the count must appear as:
  12. #            left parenthesis
  13. #            optional white space
  14. #            digit string for the count (really only one digit)
  15. #            optional white space
  16. #            optional right parenthesis
  17. #        optional white space
  18. #        optional equal sign
  19. #        optional white space
  20. #        pattern (to end of line)
  21. #
  22. #    example:
  23. #
  24. #        message ( 3 ) = this is a %1 %2 %3 three substitute message
  25. #
  26. #    substitutes are marked in the pattern by a percent character followed
  27. #        by a digit with no intervening characters.  Any other char
  28. #        following a % is just stuffed into the output, so %% prints
  29. #        one % character.
  30. #
  31. #    white space is C isspace characters
  32. #
  33. #
  34. # javac errors
  35. #
  36. bad.option(1)=            Incorrect command line option '%1'
  37. warn.unimplemented.option(1)=    warning: Command line option '%1' has not been implemented
  38. warn.na.option(1)=        warning: Command line option '%1' does not apply to this compiler
  39. dest.not.dir(1)=        Destination '%1' is not a directory
  40. #
  41. # generate errors
  42. #
  43. cant.make.dir(1)=        Cannot create package directory '%1'
  44. cant.make.classfile(1)=        Cannot create class file '%1'
  45. write.failed=            Write of classfile failed, possibly the disk is full
  46. illegal.static.lhs(2)        Can't make a static reference to nonstatic variable '%1' in class '%2'
  47. illegal.lhs            Illegal lval (can't assign to this item)
  48. #
  49. # scanner errors
  50. #
  51. unknown.char(2)=        Invalid character in input: '%1' (%2)
  52. number.format=            Number format error
  53. invalid.oct.number=        Invalid character in octal number.
  54. invalid.dec.number=        Invalid character in number.
  55. invalid.hex.number=        Invalid character in hex number.
  56. invalid.literal.char=        Invalid character constant.
  57. #
  58. # parser errors
  59. #
  60. package.no.iden=        Package name must be an identifier
  61. package.no.dot=            Package name elements must be separated by .
  62. class.interface.expected=    'class' or 'interface' keyword expected.
  63. class.name.expected=        Expected a class name
  64. syntax.error=            Syntax error
  65. dup.class.mod(1)=        Repeated '%1' class modifier
  66. class.body.expected=        Expected the body of the class definition
  67. import.no.iden=            Import expects a class name
  68. import.no.sm=            Import statement needs a semi-colon
  69. interface.not.final=        Interfaces cannot be declared 'final'
  70. unexpected.rc=            Unexpected }
  71. dup.decl.mod(1)=        Repeated '%1' declaration modifier
  72. conflict.decl.mod=        Inconsistent member declaration.  At most one of public, private or protected may be specified.
  73. final.volatile.var =         Volatile variables can't be final or members of interfaces
  74. constructor.bad.mod(1)=        Constructor cannot appear with '%1' modifier
  75. type.expected=            Type expected or missing '}'
  76. rb.expected=            ']' expected
  77. extra.package.stmt=        Package name is already defined
  78. dup.class.name.local(2)=    Class %1 is already defined at line %2
  79. dup.variable.name.local(2)=    Variable %1 is already defined in this method (previous definition on line line %2)
  80. dup.parameter.name(1)=        Duplicate parameter declaration: %1
  81. var.name.expected=        Variable or method name expected
  82. var.native.sync.abs=        Variables can't be synchronized, abstract or native 
  83. unexpected.array.init=        Array initializer may not appear with non-array type
  84. wrong.constructor=        Incorrect name in constructor
  85. void.variable=            Cannot declare a variable with void type
  86. void.array=            Cannot declare an array of void
  87. void.param=            Cannot declare a parameter with void type
  88. no.close.params=        No end of parameter list
  89. param.name.expected=        Parameter name expected
  90. param.missing.comma=        Parameter list is missing a comma
  91. volatile.method(1)=        Method '%1' can't be volatile. Only variables can be volatile.
  92. transient.method(1)=        Method '%1' can't be transient. Only variables can be transient.
  93. method.body.expected(1)=    Expected the body of the method: %1
  94. method.body.not.expected(1)=    Abstract and native methods can't have a body: %1
  95. constructor.body.expected=    Expected the body of the constructor
  96. no.block.close=            End of file without a } for a block
  97. expression.syntax=        Expression syntax
  98. return.syntax=            Return statement missing semi-colon
  99. missing.sm=            ';' expected.
  100. missing.call.rp=        Call arguments missing )
  101. constructor.missing.args=    New operation needs constructor argument list
  102. if.missing.lp=            If statement missing left parenthesis
  103. if.missing.rp=            If statement missing right parenthesis
  104. misplaced.else=            'else' without 'if'.
  105. switch.missing.lp=        Switch statement missing left parenthesis
  106. switch.missing.rp=        Switch statement missing right parenthesis
  107. switch.missing.lc=        Switch statement must enclose a block
  108. break.missing.sm=        Break missing semi-colon
  109. continue.missing.sm=        Continue missing semi-colon
  110. undefined.break.name(1)=    No label definition found for '%1'
  111. undefined.continue.name(1)=    Continue to undefined label '%1'
  112. label.not.loop(1)=        Continue to non-loop label '%1'
  113. misplaced.break=        'break' must be in loop or switch.
  114. misplaced.continue=        'continue' must be in loop.
  115. misplaced.case=            'case' outside switch statement.
  116. case.missing.co=        Case label missing colon
  117. default.missing.co=        Default label missing colon
  118. misplaced.default=        'default' outside switch statement.
  119. duplicate.default=        Duplicate 'default' label
  120. for.missing.lp=            For statement missing left parenthesis
  121. for.missing.sm=            For statement missing semi-colon
  122. for.missing.rp=            For statement missing right parenthesis
  123. subscript.missing.rb=        Array subscript mising right bracket
  124. while.missing.lp=        While statement missing left parenthesis
  125. while.missing.rp=        While statement missing right parenthesis
  126. do.missing.while=        Do-while statment missing while keyword
  127. do.missing.lp=            Do-while statement missing left parenthesis
  128. do.missing.rp=            Do-while statement missing right parenthesis
  129. cast.syntax=            Cast syntax
  130. array.size.needed=        Array dimension missing.
  131. try.missing.lc=            Try statements must enclose a block
  132. try.missing.catch=        'try' without 'catch' or 'finally'.
  133. catch.missing.lc=        Catch clauses must enclose a block
  134. catch.missing.lp=        Catch clause missing left parenthesis
  135. catch.missing.name=        Must declare a variable name for the exception
  136. catch.missing.rp=        Catch clause missing right parenthesis
  137. catch.type=            Catch parameter does not derive from java.lang.Throwable
  138. catch.not.reached=        catch not reached.
  139. throw.syntax=            Throw statement missing semi-colon
  140. no.throw.for.catch(1)=        Exception %1 is never thrown in the body of the corresponding try statement.
  141. throw.type(1)=            Class %1 does not extend java.lang.Throwable
  142. throws.not.caught(2)=        Exception %1 thrown from %2 must be caught, or it must be declared in the throws clause of this method
  143. throw.not.caught(1)=        Exception %1 must be caught, or it must be declared in the throws clause of this method
  144. static.throw=            An exception can't be thrown in an initializer.
  145. synch.missing.lp=        Synchronized statement missing left parenthesis
  146. synch.missing.rp=        Synchronized statement missing right parenthesis
  147. synch.missing.lc=        Synchronized statement must enclose a block
  148. incorrect.label=        Incorrect statement label, must be simple identifier
  149. finally.missing.lc=        Finally clause must enclose a block
  150. improper.super=            Improper use of super
  151. sync.type(1)=            Incompatible type for synchronized. Can't convert %1 to java.lang.Object.
  152. #
  153. # symbol errors
  154. #
  155. dup.class.name(3)=        Class %1 is already defined in '%2' at line %3
  156. undef.class(1)=            Class %1 not found in type declaration or import.
  157. public.class.filename(1)=    Public class %1 must be defined in a file called "%1.java".
  158. final.class.mod(2)=        Class %1 can't subclass final class %2
  159. dup.import(2)=            Import of '%1' clashes with imported class on line %2
  160. class.dups.import(2)=        Class name %1 clashes with imported class on line %2
  161. ambig.class(1)=            Ambiguous class name '%1'
  162. cant.read.classfile(1)=        Cannot read class file '%1'
  163. reference.ambiguous(3)=        Reference to '%1' is ambiguous. It is defined in '%2' and '%3'
  164. package.not.found(1)=        Package %1 not found in import.
  165. implements.class(1)=        class %1 must be an interface.
  166. uninitialized.variable=        Uninitialized variable
  167. final.abstract.method=        Inconsistent declaration. Cannot be both final and abstract
  168. static.abstract.method=        Inconsistent declaration. Cannot be both static and abstract
  169. private.abstract.method=    Inconsistent declaration. Cannot be both private and abstract
  170. #
  171. # tree typing errors
  172. #
  173. undef.variable(1)=        Undefined variable, class, or package name: %1
  174. undef.method(1)=        No method found matching %1
  175. undef.constructor(2)=        No constructor in %1 matches %2
  176. undef.field(1)=            No variable %1 defined in class
  177. not.class.type=            Object does not have a class type
  178. not.array.type=            Object does not have an array type
  179. no.super(1)=            No super class for '%1'
  180. super.not.first=        Call to super constructor is not first in the method
  181. super.not.constructor=        Call to super not in constructor
  182. this.not.first=            Call to this constructor is not first in the method
  183. this.not.constructor=        Call to this not in constructor
  184. incomp.type.asg(2)=        Incompatible type for =. Can't convert %1 to %2.
  185. cannot.new=            Cannot use operator new for this type
  186. incomp.type(2)=            Invalid cast from %1 to %2.
  187. cant.instanceof(2)=        %2 cannot be an instance of %1
  188. explicit.cast(2)=        Explicit cast needed to convert %1 to %2
  189. disallowed.type(1)=        %1 operand type is not allowed for this operator
  190. return.value.needed=        Return required at end of method.
  191. return.value.disallowed=    'return' with value from void method().
  192. return.type=            Incompatible type for return.
  193. return.type.cast.needed=    Incompatible type for return; explicit cast needed
  194. improper.class.ref=        Improper use of a class name
  195. not.static.method(1)=        '%1' is not a static method
  196. static.method(1)=        '%1' is a static method
  197. array.new.missing.bounds=    Array new is missing an array bounds
  198. const.needed=            Constant expression required.
  199. dup.case=            Duplicate case label
  200. omitted.bound=            Cannot provide an array dimension after omitting one
  201. circular.init=            Circular constant definition
  202. circular.super(1)=        Inheritance loop in definition for '%1'
  203. #
  204. # class load errors
  205. #
  206. bad.class.file(1)=        Class file format incorrect for '%1'
  207. wrong.class.version(3)=        Class file '%1' has incorrect version %2, should be %3
  208. #
  209. # semantic errors
  210. #
  211. must.be.abstract(3)=        Class %1 must be declared abstract. It does not define %2 declared in %3
  212. redefined.different.return=        Method redefined with different return type
  213. redefined.more.private=        Methods can't be overridden to be more private
  214. not.abstract.and.final(1)=        Class %1 can't be declared both abstract and final
  215. not.reached=            Statement not reached.
  216. out.of.memory=            Cannot allocate memory
  217. zip.error(1)=            File in classpath is not a zip or jar file: %1
  218. illegal.static.reference(2)=        Can't make a static reference to nonstatic variable %1 in class %2
  219. illegal.interface.method.mod(1)=        Interface methods can't be native, static, synchronized, final, private, or protected : %1
  220. static.method.not.overridden(2)=        Static methods can't be overridden. Method %1 is static in class %2
  221. final.method.not.overridden(2)=        Final methods can't be overridden. Method %1 is final in class %2
  222. interface.no.constructor=        Interfaces can't have constructors.
  223. interface.no.static.block=        Interfaces can't have static initializers.
  224. filename.suffix(1)=        Java source files must have a .java suffix: %1
  225. interface.repeated(1)=        Interface %1 repeated.
  226. bad.stack.frame(1)=        Cannot find stack frame %1
  227. usage.javac=     usage: javac [ options ] sources
  228. usage.options.heading=    Options:
  229. usage.classpath=    -classpath path Search for classes in the named path
  230. usage.d=        -d dir          Place classes relative to directory 'dir'
  231. usage.g=        -g              Include full debugging info
  232. usage.xdepend=        -xdepend        Print class locations and dependencies
  233. usage.jws=        -jws            Same as -xdepend
  234. usage.nomessage=    -nomessage      Do not print out any error messages
  235. usage.nowarn=        -nowarn         Do not print out warning messages
  236. usage.nowrite=        -nowrite        Do not produce class files
  237. usage.err=        -err=N          Terminate after N errors
  238. usage.msg=        -msg=N          Terminate after N messages
  239. usage.depend=        -depend         Not implemented
  240. usage.deprecation=  -deprecation    Not implemented
  241. usage.verbose=        -verbose        Not implemented
  242. usage.O=        -O              Not implemented
  243. usage.debug=        -debug          Not implemented
  244. too.many.errors=    Too many errors
  245. too.many.messages=    Too many messages
  246. cannot.open.source(1)=    Cannot open source file '%1'
  247. error.count(1)=        %1 error
  248. errors.count(1)=    %1 errors
  249. warning.count(1)=    %1 warning
  250. warnings.count(1)=    %1 warnings
  251. internal.codegen.error(1)=    Internal code generator error: %1
  252. internal.tree.error(1)=    Internal parse tree error: %1
  253. internal.evalexpr.error(1)=    Internal expression evaluator error: %1
  254. big.division=    64bit long / emulation cannot do this division
  255. big.remainder=    64bit long % emulation cannot do this remainder
  256. init.parse=    Cannot parse initializer
  257. evalexpr.null.array=    NullPointerException detected in array subscripting
  258. evalexpr.array.bounds=    IndexOutOfBoundsException detected
  259. evalexpr.not.found(1)=    Cannot access this variable at this line: %1
  260. evalexpr.cannot.evaluate=    Cannot evaluate this expression
  261. evalexpr.no.calls=    Cannot call methods
  262. warn.divide.by.zero=    warning: Integer divide by zero detected
  263. warn.rem.by.zero=    warning: Integer remainder by zero detected
  264.