Hi everybody,
I discovered some interesting things while experimenting with
Jdepend-JUnit-Tests. I found a bug in the method match(Collection)
within the class jdepend.framework.DependencyConstraint. The code
around the for-loop looks like this:
for (Iterator i = expectedPackages.iterator(); i.hasNext();) {
…
else {break;}
return true;
}
But the correct way is:
for (Iterator i = expectedPackages.iterator(); i.hasNext();) {
…
else {break;}
}
return true;
Can anybody confirm that?
Cheers,
Yusuf