Check type of primitive field

You’re using the wrong constant to check for Long primitives – use Long.TYPE, each other primitive type can be found with a similarly named constant on the wrapper. eg: Byte.TYPE, Character.TYPE, etc.

Leave a Comment