Fix compiler crash when using incremental pipeline

This commit is contained in:
Alexey Andreev 2019-01-30 19:36:00 +03:00
parent 35ca7fd152
commit 7d2c76f711

View File

@ -795,7 +795,9 @@ public class TeaVM implements TeaVMHost, ServiceRepository {
dependencyAnalyzer.getClassHierarchy(), diagnostics);
private Map<String, ClassHolder> cache = new HashMap<>();
private Set<String> classNames = Collections.unmodifiableSet(new HashSet<>(
dependencyAnalyzer.getReachableClasses()));
dependencyAnalyzer.getReachableClasses().stream()
.filter(className -> dependencyAnalyzer.getClassSource().get(className) != null)
.collect(Collectors.toList())));
@Override
public ClassHolder get(String name) {