The static initialisation order of the inner class in TypeCodec are not garanteed, and sometimes that causes the primitiveCodecs map to be initialised before LongCodec.instance is.
it happens on oracle java8 travid ci build box, but if I ran that
then it happens all the time
the primitiveCodecs should not depends on the static initialisers, it could instead create the instance itself.
during the build I then get the following error