my colleague just had a problem with spindle and what
we found at the root of it was a perpetual recursion in
FullBuild. after looking into it i decided it was
probably caused by namespace having itself as a child,
so i've just added a check for that and it worked. the
real problem is somewhere else i guess, but as this
fixes some cases of perpetual recursion i think it is
the right thing to do (tm).
here goes the patch:
RCS file:
/cvsroot/spindle/com.iw.plugins.spindle.core/src/com/iw/plugins/spindle/core/builder/FullBuild.java,v
retrieving revision 1.37
diff -u -r1.37 FullBuild.java
--- FullBuild.java 29 Aug 2005 01:13:12 -0000 1.37
+++ FullBuild.java 9 Dec 2005 08:42:44 -0000
@@ -149,7 +149,7 @@
{
String id = (String) iter.next();
ICoreNamespace child = (ICoreNamespace)
namespace.getChildNamespace(id);
- if (child != null)
+ if (child != null && child != namespace)
saveBinaryLibraries(child, state);
}
}
patch