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 245185
Collapse All | Expand All

(-)a/cnd.highlight/src/org/netbeans/modules/cnd/highlight/error/HighlightProviderTaskFactory.java (-4 / +6 lines)
Lines 99-109 Link Here
99
                    return;
99
                    return;
100
                }
100
                }
101
                interrupter.cancel();
101
                interrupter.cancel();
102
                this.lastParserResult = result;
103
                this.interrupter = new InterrupterImpl();
102
                this.interrupter = new InterrupterImpl();
104
            }
103
                if (cancel.isCancelled()) {
105
            if (cancel.isCancelled()) {
104
                    lastParserResult = null;
106
                return;
105
                    return;
106
                } else {
107
                    this.lastParserResult = result;
108
                }
107
            }
109
            }
108
            long time = 0;
110
            long time = 0;
109
            try {
111
            try {
(-)a/cnd.highlight/src/org/netbeans/modules/cnd/highlight/semantic/SemanticHighlighter.java (-5 / +7 lines)
Lines 322-334 Link Here
322
            interrupter.cancel();
322
            interrupter.cancel();
323
            latch.countDown();
323
            latch.countDown();
324
            
324
            
325
            lastParserResult = result;
326
            interrupter = new InterrupterImpl();
325
            interrupter = new InterrupterImpl();
327
            latch = new CountDownLatch(1);
326
            latch = new CountDownLatch(1);
328
        }
327
            if (cancel.isCancelled()) {
329
        if (cancel.isCancelled()) {
328
                lastParserResult = null;
330
            LOG.log(Level.FINE, "SemanticHighlighter have been canceled before start, Task={0}, Result={1}", new Object[]{System.identityHashCode(this), System.identityHashCode(result)}); //NOI18N
329
                LOG.log(Level.FINE, "SemanticHighlighter have been canceled before start, Task={0}, Result={1}", new Object[]{System.identityHashCode(this), System.identityHashCode(result)}); //NOI18N
331
            return;
330
                return;
331
            } else {
332
                lastParserResult = result;
333
            }
332
        }
334
        }
333
        long time = 0;
335
        long time = 0;
334
        if (LOG.isLoggable(Level.FINE)) {
336
        if (LOG.isLoggable(Level.FINE)) {
(-)a/cnd.navigation/src/org/netbeans/modules/cnd/navigation/overrides/OverrideTaskFactory.java (-4 / +6 lines)
Lines 98-108 Link Here
98
                return;
98
                return;
99
            }
99
            }
100
            canceled.set(true);
100
            canceled.set(true);
101
            lastParserResult = result;
102
            canceled = new AtomicBoolean(false);
101
            canceled = new AtomicBoolean(false);
103
        }
102
            if (cancel.isCancelled()) {
104
        if (cancel.isCancelled()) {
103
                lastParserResult = null;
105
            return;
104
                return;
105
            } else {
106
                lastParserResult = result;
107
            }
106
        }
108
        }
107
        FileObject fo = result.getSnapshot().getSource().getFileObject();
109
        FileObject fo = result.getSnapshot().getSource().getFileObject();
108
        if (fo == null) {
110
        if (fo == null) {

Return to bug 245185