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

(-)a/parsing.api/src/org/netbeans/modules/parsing/api/ParserManager.java (-1 / +1 lines)
Lines 179-185 Link Here
179
                        parser = parserFactory.createParser (snapShots);
179
                        parser = parserFactory.createParser (snapShots);
180
                    }
180
                    }
181
                }
181
                }
182
                final SourceCache uncachedSourceCache = new SourceCache(source, null);
182
                final SourceCache uncachedSourceCache = new SourceCache(source, null, parser);
183
                SourceCache origCache = SourceAccessor.getINSTANCE().getAndSetCache(source, uncachedSourceCache);
183
                SourceCache origCache = SourceAccessor.getINSTANCE().getAndSetCache(source, uncachedSourceCache);
184
                final ResultIterator resultIterator = new ResultIterator (uncachedSourceCache, parser, userTask);
184
                final ResultIterator resultIterator = new ResultIterator (uncachedSourceCache, parser, userTask);
185
                try {
185
                try {
(-)a/parsing.api/src/org/netbeans/modules/parsing/impl/SourceCache.java (+12 lines)
Lines 106-111 Link Here
106
            source.getMimeType ();
106
            source.getMimeType ();
107
        mimeType.getClass();
107
        mimeType.getClass();
108
    }
108
    }
109
    
110
    public SourceCache (
111
        Source              source,
112
        Embedding           embedding,
113
        Parser              parser
114
    ) {
115
        this(source, embedding);
116
        if (parser != null) {
117
            this.parserInitialized = true;
118
            this.parser = parser;
119
        }
120
    }
109
121
110
    private void setEmbedding (
122
    private void setEmbedding (
111
        Embedding           embedding
123
        Embedding           embedding

Return to bug 214181