Fix java_serializer specs