is there hash code / Heap address for primitive types in Java? -
i trying find approximization address on heap , , guys gave me function system.identityhashcode(object) . the problem - function doesn't fit primitive types. i'll explain why. i'm given input java compiled program - class file. goal plot graphs contain information variable access between time. have no idea of how code looks in advance , , tactic instrumentation of own bytecode every load , store instruction. i'm using asm java bytecode instrumentation. therefore, can't like: identityhashcode(integer.valueof(...)) because have no indication whether type int, double, long, etc. i want able determine between different instances of same class: for example : class foo { int a; } foo b; foo c; b.a++; c.a++; but when comes bytecode , there no relation between name "b" / "c" , attribute a. "see" is incremented. both regarded ! if object a have used system.identityhashcode() distinguish between them. can't. to make ...