Debug Eclipse - Classes with equal names in different projects

0

I was debugging here and came across a curious situation. I already fucked, but I could not succeed in finding out the problem.

In a project, I have the class EntidadeDAO in project1 . In another project, in the same workspace, I have a class with the same name, EntidadeDAO , in project2 . When debugging in project1 , in this class, eclipse points to the project2 class.

obs: The two classes are quite different, only the names are the same . Only the same names. The project name and packages are all different.

Someone else has already experienced this situation and can you tell me why?

edit: I'm using Eclipse Neon, I forgot to let you know.

    
asked by anonymous 16.06.2017 / 18:54

1 answer

2
This problem occurs because in the debug configuration of eclipse project1 is first that project2, this is kind of an eclipse bug, and a lot of people who have classes that have the same name in several projects have this problem once in a while when, I've been able to solve this in two ways:

1st Option: Change the order of the Source Lookup in the debug.

Then

2nd Option: Instead of changing the order remove one of the Source Lookup projects temporarily

    
20.06.2017 / 13:56