While it was extremely unethical for him to change your CV, Java and C# are indeed very similar, to the point that most organizations use devs with that background interchangeably.
If that company really ruled you out because you had 7 years of C# experience, and not 7 years of Java experience, you likely dodged a bullet.