I hit F5 ~1000 times and restarted eclipse (also with -clean), deleted /bin, but nothing helps. Manually importing DoodleClient does not help. DoodleClient exists and is perfect
The first thing I would do is create a new class in the same package and check if it is visible from this class where you have the issue.
Also I'm not sure but you could check to change the name of your class "D" for something different.
and ...Check if the file actually does exist
Tried many of the suggestions above w/o success (Eclipse restart, Clean multiple times, auto-suggest etc.). What got me out of this bind was a hard reset to a prior commit (I'm using git), building (this time w/ success), then pulling the latest sources of the project again and rebuilding.
Alternatively, you can highlight the project :
Choose Clean ...
from Project menu and if you have activated the Build Automatically
option (in the same menu), the classes will be generated anew.
I could resolve it: On another project (from the same git repo), I had the same issue on several files in different packages. All I had to do was writing a white-space into the file, remove it again and save, so eclipse would re-compile it (I guess).
Some kind of a strange behaviour... :S
In my case it was that my Java Build Path -> Source didn't had checked the Contains test sources on my include source path and my code was JUnit