This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 235748
Collapse All | Expand All

(-)openide.util.lookup/src/org/openide/util/lookup/ProxyLookup.java (+15 lines)
Lines 570-576 Link Here
570
            collectFires(null);
570
            collectFires(null);
571
        }
571
        }
572
        
572
        
573
        ThreadLocal<Boolean> IN = new ThreadLocal<Boolean>();
573
        protected void collectFires(Collection<Object> evAndListeners) {
574
        protected void collectFires(Collection<Object> evAndListeners) {
575
            Boolean prev = IN.get();
576
            if (Boolean.TRUE.equals(prev)) {
577
//                Thread.dumpStack();
578
                return;
579
            }
580
            try {
581
                IN.set(true);
582
                collImpl(evAndListeners);
583
            } finally {
584
                IN.set(prev);
585
            }
586
        }
587
        
588
        private void collImpl(Collection<Object> evAndListeners) {
574
            boolean modified = true;
589
            boolean modified = true;
575
590
576
            final Object[] ll;
591
            final Object[] ll;

Return to bug 235748