While investigating stack overflow issue 268918 I found that the following situation leads to UI freezes and stack overflows:
#ln -s . cyclic_link1
#ln -s . cyclic_link2
Cyclic links protection does not work for such case.
It also won't work for other less trivial cases.
fixed, change sets 5550fb8a2b7b and 506cd546a8e9 on enum
*** Bug 268918 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201612030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Vladimir Kvashin <firstname.lastname@example.org>
Log: fix for #269198 - Endless recursion through cyclic links
(transplanted from 5550fb8a2b7b327ef77ed62cb8a8bfde680f0b49)
Verified in internal NetBeans 8,2 patch 1 build.