I believe that you did not do an svn rename at first.
If svn is integrated with eclipse you should have the right click subversion options. First do an revert on that file to get back the version from the repository which is A.java.
Then right click and do an svn renmae, which then rename it to B.java Then right click to the file and do and svn commit.
This should do the trick.