On the other hand you have to register with the local Koseki[1] and last names are positive indicators of ethnicity for the non-Japanese [except for haafu with ethnic Japanese fathers].
On the other hand, France by law does not track race characteristics, so they can't rely on census statistics to know how well or poorly a population is doing.
Is it not true that non-citizens do not have entries in the koseki system? I may be misunderstanding. Is it not also true that on becoming a citizen, a "Japanese name" must be selected? Though I habe heard that such a name can be entirely in katakana, and simply a transliteration of a Western or Chinese name.
I know however that one may select an entirely "native Japanese" name upon naturalisation.
With regard to name, I'm unsure, though I believe what you stated has validity.
Presumably there are legal restrictions on record collection to impede the possible future discrimination.
It has some downsides. A recent piece of research into racism recently assumed that all Japanese nationals were ethnically Japanese so did not survey them on their experiences with racism. Considering around 1 in 50 children in Japan are 'mixed race' this seems a little off.