The change should be quite harmless, but someone more expert then me should really look at it carefully. I'm just proposing a fix, maybe it's wrong, but I'd really appreciate to get this fixed in a way or another... Seems a small feature but has a huge impact in my use case.
As seen in 9d99692f785588dc18c63f7cbad2ed628e97fc3d , I add a support for double too. I spot this while using Kryo library, quite popular in libGDX world (https://github.com/EsotericSoftware/kryo/blob/master/src/com/esotericsoftware/kryo/serializers/UnsafeField.java#L214).
The change should be quite harmless, but someone more expert then me should really look at it carefully. I'm just proposing a fix, maybe it's wrong, but I'd really appreciate to get this fixed in a way or another... Seems a small feature but has a huge impact in my use case.
Many thanks!