If you debug some code on a project where you have multiple versions in your workspace, eclipse may lookup for the wrong class.
To tell eclipse which project to search for, go to:
Run > Debug Configurations...
- Click on your debug configuration
- Go to
Source Lookup Pathpanel:
- add the version of your project you want eclipse to search for