aionnetwork / AVM

Enabling Java code to run in a blockchain environment
https://theoan.com/
MIT License
49 stars 25 forks source link

Specification request -- hashcode uniqueness #404

Closed fulldecent closed 4 years ago

fulldecent commented 4 years ago

Requesting specification that hashcode is guaranteed globally unique for all objects instances, including Enum instances.

https://github.com/aionnetwork/AVM/blob/master/org.aion.avm.rt/src/s/java/lang/Object.java#L88

fulldecent commented 4 years ago

PR https://github.com/aionnetwork/AVM/pull/405

fulldecent commented 4 years ago

Thank you, this resolves the issue: https://github.com/aionnetwork/AVM/wiki/Hash-Code

https://github.com/aionnetwork/AVM/pull/405#issuecomment-522037465

Referenced here: https://github.com/fulldecent/aion-aip040/commit/635d84363e9a4ef46bcb1ccfd3ce3bb8505b3d28