Re: No Label.equals() method

Eugene Kuleshov <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <CADFjdoXt_WEDqONRY327wPufDqJy_rpn1AuZ5uAzovpk3MJrFg@mail.gmail.com>
A short answer - you can't and generally don't need to. However you can
change your transformation to keep the original labels.

  regards,
  Eugene
 On 2011-07-10 5:07 PM, "Prashant Deva" <[email protected]> wrote:
> Yes, but if you need to store the labels as in my case, the identity wont
be
> preserved since new Label objects will be created when the 2nd transformer
> is running.
> Thats why I need to know how to do the equals without the identity.
> Prashant
>
>
> On Sun, Jul 10, 2011 at 2:05 PM, Eugene Kuleshov <[email protected]
>wrote:
>
>> The Label class relies on default implementation of equals() and
hashcode()
>> methods. Comparison of two labels should be done by identity.
>>
>> regards,
>> Eugene
>> On 2011-07-10 4:54 PM, "Prashant Deva" <[email protected]> wrote:
>> > I noticed that the Label class does not have a equals() method.
>> > I need to store the Label info for a local var across multiple
>> transformers.
>> >
>> > This means I need a equals() method for the Label class.
>> >
>> > Can somebody tell what kind of checks should a Label.equals() method
>> > contain?
>> >
>> > Prashant
>>
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.