jakarta-bcel-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius" <dbros...@qis.net>
Subject Re: Add a new field to a class - urgent
Date Thu, 17 Feb 2005 03:54:12 GMT
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" <Simplice.Djoko@imag.fr>

> 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
>
> -- 



---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org


Mime
View raw message