Mantis - Hessian
Viewing Issue Advanced Details
5385 minor always 03-04-13 09:11 03-11-16 04:00
Moritz Lapp  
 
normal  
new 4.0.7  
open  
none    
none  
0005385: Hessian IdentityIntMap ArrayIndexOutOfBoundsException
This is a follow-up to 0005239, albeit from someone else...
Basically, we ran into the same problem as described in 0005239 using hessian 4.0.7 as downloadable from http://hessian.caucho.com [^] and fixed it ourselves without knowing that a new version existed.

However, in our fix, we not only modified com.caucho.hessian.util.IdentityIntMap#put(Object, int, boolean), but com.caucho.hessian.util.IdentityIntMap#get(Object) as well. Though we took a slightly different approach, a matching patch is attached and should serve you well.

It's just that we're a bit afraid that the IdentityIntMap might not only be used for put only, but that the very same problem might arise for get as well, as both rely on the same System#identityHashCode behavior.
 hessian-IdentityIntMap.java.patch [^] (589 bytes) 03-04-13 09:11

Notes
(0006681)
jpietka   
03-11-16 04:00   
Hello, in which next release this fix will be added?