Re: Add a new field to a class - urgent
"Dave Brosius" <[email protected]>
| Newsgroups | gmane.comp.jakarta.bcel.user |
|---|---|
| Message-ID | <002d01c514a4$585e1500$087496d1@MBFG> |
The name is the name of the field, the signature describes the type, so if you had a field like this String[] foo; The name_index would point to a ConstantUtf8 entry that contained foo The signature_index would point to a ConstantUtf8 entry that contained [Ljava/lang/String; ConstantPoolGen.addFieldRef would be one way of adding these items to the constant pool ----- Original Message ----- From: "Simplice Djoko" <[email protected]> > Hi dave, > thank for your answer, please could you tel me what is the difference > between name_index > and signature_index and what can i do to give for a new field the values > of name_index and > signature_index who are not in the constant pool > > --