But this system is allowed to continue only because the employees admit it. I guess it is not illegal to disclose your own salary. Or is it? Can an employer fire you if you disclose your salary?
In academia, even while the salaries are rather meager, at least they are public and equal to everybody (depending only on your position and seniority, according to some public tables). We could very well do with a bit of wage inflation!