Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] SourceType.equals() is broken

Hi,

Our unit test fails since two classes with same name, but declared in different files are equal.
For example, you have:

a.php:
class A  {}

b.php:
class A {}

DLTKCore.create(project.getFile("a.php")).getType("A").equals(DLTKCore.create(project.getFile("b.php")).getType("A")) == true !

May be this is due to optimization in ModelElement.compareParents() from 02/06/08 :)

Thanks!

--
Michael

Back to the top