1 # Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
  2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  3 #
  4 # This code is free software; you can redistribute it and/or modify it
  5 # under the terms of the GNU General Public License version 2 only, as
  6 # published by the Free Software Foundation.
  7 #
  8 # This code is distributed in the hope that it will be useful, but WITHOUT
  9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 10 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 11 # version 2 for more details (a copy is included in the LICENSE file that
 12 # accompanied this code).
 13 #
 14 # You should have received a copy of the GNU General Public License version
 15 # 2 along with this work; if not, write to the Free Software Foundation,
 16 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 17 #
 18 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 19 # or visit www.oracle.com if you need additional information or have any
 20 # questions.
 21 
 22 jasm.usage=\
 23 Usage: java -jar asmtools.jar jasm [options] file.jasm...\n\
 24 where possible options include:
 25 
 26 jasm.opt.d=\
 27 \     -d destdir  directory to place resulting .class files
 28 jasm.opt.v=\
 29 \     -v          add trace information
 30 jasm.opt.g=\
 31 \     -g          add debug information
 32 jasm.opt.version=\
 33 \     -version    prints the program version
 34 jasm.opt.nowrite=\
 35 \     -nowrite    do not write resulting .class files
 36 jasm.opt.strict=\
 37 \     -strict     consider warnings as errors
 38 jasm.opt.nowarn=\
 39 \     -nowarn     do not print warnings
 40 jasm.opt.cv=\
 41 \     -cv major.minor  set operating class file version (by default {0}.{1})
 42 
 43 
 44 jasm.error.d_requires_argument=-d requires argument
 45 jasm.error.does_not_exist={0} does not exist
 46 jasm.error.cv_requires_arg=-cv requires argument
 47 jasm.error.invalid_major_minor_param=invalid parameter major.minor
 48 jasm.error.invalid_option=invalid option: {0}
 49 jasm.error.cannot_read=cannot read {0}
 50 jasm.error.cannot_write=cannot write {0}
 51 jasm.error.fatal_error=fatal error
 52 jasm.error.fatal_exception=fatal exception
 53 
 54 
 55 # Scanner:
 56 err.invalid.escape.char=Invalid escape character.
 57 err.eof.in.comment=Comment not terminated at end of input.
 58 err.invalid.number=Invalid character "{0}" in number.
 59 err.invalid.octal.number=Invalid character in octal number.
 60 err.overflow=Numeric overflow.
 61 err.float.format=Invalid floating point format.
 62 err.eof.in.string=String not terminated at end of input.
 63 err.newline.in.string=String not terminated at end of line.
 64 err.funny.char=Invalid character in input.
 65 err.unbalanced.paren=Unbalanced parentheses.
 66 # Parser:
 67 err.package.repeated=Package statement repeated.
 68 warn.intf.repeated=Interface {0} repeated.
 69 warn.exc.repeated=Exception repeated in throws clause.
 70 warn.record.repeated=Record attribute repeated.
 71 err.multiple.inherit=Multiple inheritance is not supported.
 72 err.toplevel.expected=Class, module or interface declaration expected.
 73 err.const.def.expected=Constant declaration expected.
 74 err.const.undecl=Constant #{0} not declared.
 75 err.const.redecl=Constant {0} redeclared.
 76 warn.const0.redecl=Re-declaration of Constant #0 cannot be written to the class file.
 77 err.field.expected=Class member declaration expected.
 78 err.token.expected={0} expected.
 79 err.identifier.expected=Identifier expected.
 80 err.extra.nesthost.attribute=There may be at most one NestHost attribute.
 81 err.extra.nestmembers.attribute=There may be at most one NestMembers attribute.
 82 err.extra.permittedsubclasses.attribute=There may be at most one PermittedSubclasses attribute.
 83 err.extra.record.attribute=There may be at most one Record attribute.
 84 err.extra.preload.attribute=There may be at most one Preload attribute.
 85 err.grouped.component.expected=Either an annotation or a record component expected.
 86 warn.no.components.in.record.attribute=Record should have at least one component.
 87 err.one.of.two.token.expected=Either #{0} or #{1} token expected.
 88 
 89 err.both.nesthost.nestmembers.found=The attributes table of a ClassFile structure must not contain both a NestMembers attribute and a NestHost attribute.
 90 err.name.expected=Name expected, got {0}.
 91 err.module.name.expected=Module name expected, got {0}.
 92 err.int.expected=Integer expected.
 93 err.neg.forbidden=Negative integer is not allowed here.
 94 err.value.large=Value doesn't fit in {0}.
 95 err.value.expected=Value expected.
 96 err.wrong.mnemocode=Invalid mnemocode ({0}).
 97 err.default.redecl=Default statement already declared in this table.
 98 err.long.switchtable=Switchtable too long: > {0}.
 99 err.io.exception=I/O error in {0}.
100 warn.wrong.tag=Wrong tag: {0} expected.
101 err.wrong.tag=Wrong tag: {0} expected.
102 warn.wrong.tag2=Wrong tag: Either {0} or {1} expected.
103 err.wrong.tag2=Wrong tag: Either {0} or {1} expected.
104 # Code Gen:
105 err.locvar.redecl=Local variable {0} redeclared.
106 err.locvar.undecl=Local variable {0} not declared.
107 #err.locvar.expected=Local variable expected.
108 err.label.redecl=Label {0} redeclared.
109 err.label.undecl=Label {0} not declared.
110 err.label.expected=Label expected.
111 err.subtag.expected=Subtag expected.
112 err.type.expected=Type expected.
113 err.trap.tryredecl=<try {0}> redeclared.
114 err.trap.endtryredecl=<endtry {0}> redeclared.
115 err.trap.notry=No <try {0}> found.
116 err.trap.noendtry=No <endtry {0}> found.
117 warn.trap.notref=No <catch {0}> declared.
118 err.cannot.write=Cannot write to {0}.
119 err.msig.malformed=Malformed method signature at char {0}. [err={1}]
120 err.no.classname=Class name not defined.
121 warn.msig.more255=Number of parameters too large ({0}>255).
122 warn.illslot=Local variable at Illegal slot {0}.
123 warn.repeated.modifier=Repeated modifier.
124 warn.invalid.modifier.init=invalid modifier for <init> method  \"{0}\".
125 warn.invalid.modifier.fiva=at most one of final and volatile modifiers can be used for a field
126 warn.invalid.modifier.intfield=interface field must be public static final only
127 warn.init.in_int=<init> method cannot be placed in an interface.
128 warn.invalid.modifier.intmth=interface method must be abstract public only  \"{0}\".
129 warn.invalid.modifier.abst=invalid modifier for abstract method.
130 #
131 warn.invalid.modifier.field=invalid modifier(s) for a field \"{0}\"
132 warn.invalid.modifier.mth=invalid modifier(s) for a method \"{0}\"
133 warn.invalid.modifier.innerclass=invalid modifier for an inner class \"{0}\"
134 #
135 warn.invalid.modifier.class=invalid modifier(s) for a class \"{0}\"
136 warn.invalid.modifier.int=invalid modifier(s) for an interface \"{0}\"
137 #
138 warn.invalid.modifier.acc=at most one of public, protected, and private modifiers can be used.
139 warn.invalid.modifier.int.abs=interface class must have abstract modifier.
140 warn.missing.modifier.class=class or enum declaration missing.
141 warn.invalid.modifier.class.finabs=class cannot be both abstract and final.
142 warn.invalid.modifier.class.intenum=cannot be both interface and enum.
143 err.itemtype.expected=StackMap item type expected instead of {0}.
144 err.localsmap.repeated=locals_map redeclared.
145 err.invalid.stack.frame.type=invalid stack frame type.
146 err.invalid.offset.same.frame=offset value more than 64 for the 'same_frame' type frame.
147 err.no.stack.map.same.locals=stack map element for the 'same_locals_1_stack_item_frame' type frame is absent.
148 err.should.be.only.one.stack.map.element=should be only one stack map element for the 'same_locals_1_stack_item_frame' type frame.
149 err.invalid.offset.same.locals=offset value more than 64 for the 'same_locals_1_stack_item_frame' type frame.
150 err.unexpected.stack.maps=there are unexpected stack maps.
151 err.unexpected.locals.maps=there are unexpected locals maps.
152 err.no.locals.map.append=locals map element for the 'append_frame' type frame is absent.
153 err.more.locals.map.elements=there are more than 3 locals map element for the 'append_frame' type frame.
154 err.stackmap.repeated=stack_map redeclared.
155 err.version.expected=class file version expected
156 err.invalid.innerclass=Invalid declaration of Inner Class
157 err.invalid.bootstrapmethod=Invalid declaration of BootstrapMethod Entry
158 err.frametype.repeated=Frametype repeated
159 err.invalid.paramnum=Invalid Parameter Number: {0}.
160 err.duplicate.paramnum=Duplicate Parameter Number: {0}.
161 err.paramname.constnum.invaltype=ParameterName CPX at {0} is not a ConstantString.
162 err.paramname.token.unexpected=Incorrect ParamName, unrecognized token: \"{0}\".
163 #
164 # annotations Errors
165 #
166 err.incorrect.annot.class=Incorrect Annotation (class), expected class name or CPX), got \"{0}\".
167 err.incorrect.annot.enum=Incorrect Annotation (enum), expected type field IDENT, \"{0}\".
168 err.incorrect.annot.enum.cpx==Incorrect Annotation (enum), expected type field CPX.
169 err.incorrect.annot.token=Incorrect Annotation, unrecognized token: \"{0}\".
170 err.incorrect.annot.bool=Incorrect Annotation (boolean), expected Integer), got \"{0}\".
171 err.incorrect.annot.byte=Incorrect Annotation (byte), expected Integer), got \"{0}\".
172 err.incorrect.annot.char=Incorrect Annotation (char), expected Integer), got \"{0}\".
173 err.incorrect.annot.short=Incorrect Annotation (short), expected Integer), got \"{0}\".
174 err.incorrect.annot.keyword=Incorrect Annotation keyword \"{0}\".
175 err.incorrect.typeannot.target=Incorrect TypeAnnotation target \"{0}\".
176 err.incorrect.typeannot.targtype.string=Incorrect TypeAnnotation \"{0}\" argument: (expected String),  \"{1}\".
177 err.incorrect.typeannot.targtype.int=Incorrect TypeAnnotation \"{0}\" argument: (expected Integer),  \"{1}\".
178 err.incorrect.typeannot.pathentry=Incorrect TypeAnnotation TargetPath PathEntry \"{0}\".
179 err.incorrect.typeannot.pathentry.argindex=Incorrect TypeAnnotation  TargetPath PathEntry ArgIndex (expected Integer),  \"{0}\".
180 #
181 # module Errors
182 err.module.statement.expected= Module statement expected.
183 err.requires.expected=Module statement \"requires [transitive] [static] ModuleName;\" expected.
184 warn.dot.will.be.converted=Forward slash \"/\" expected instead of dot \".\". The dot is replaced by \"/\".
185 #
186 # Compiler Errors
187 #
188 comperr.constcell.nullvalset="Cell without value in setCell"
189 comperr.constcell.nullvalhash="Cell without value in cpoolHashByValue"
190 comperr.constcell.invarg="Cell[{0}] has #{1}"
191 comperr.constcell.nullval="ConstCell.value=null??"
192 comperr.val.noteq="Values not eq"
193 comperr.instr.nullarg="null arg for {0}"
194 comperr.instr.arglong="Too long argument of {0}: {1}"
195 comperr.instr.opclen="Wrong opcLength({0})"