Atomikos Forum

Hashcode() for Transaction not implemented

Hello,

I tried using an Atomikos Transaction as a key to an CHM, but found that hashcode() method was not overridden, and just the equals method was. Can you please override this, possible something like

public int hashCode() {
  return tid.hashCode()
}

This would help alot!
Nabib El-Rahman Send private email
Friday, February 19, 2010
 
 
Thanks,

This is indeed a subtle bug: TransactionImp.java does implement hashCode but delegates to another object that doesn't override the Object default.

I scheduled a fix for our next 3.6.2 maintenance release.

Cheers
Guy Pardon Send private email
Saturday, February 20, 2010
 
 
OK,

Our 3.6.2 is out and fixes this one.
Guy Pardon Send private email
Tuesday, February 23, 2010
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics