Minor bugfixes

This commit is contained in:
konsoletyper 2015-01-22 21:04:17 +04:00
parent da4e548d38
commit 871667cacb
2 changed files with 6 additions and 2 deletions

View File

@ -459,7 +459,11 @@ public class TeaVM implements TeaVMHost, ServiceRepository {
}
int index = 0;
for (String className : dependency.getAchievableClasses()) {
ClassHolder cls = ModelUtils.copyClass(dependency.getClassSource().get(className));
ClassReader clsReader = dependency.getClassSource().get(className);
if (clsReader == null) {
continue;
}
ClassHolder cls = ModelUtils.copyClass(clsReader);
cutClasses.putClassHolder(cls);
missingItemsProcessor.processClass(cls);
linker.link(dependency, cls);

View File

@ -92,7 +92,6 @@ public class TeaVMProjectBuilder extends IncrementalProjectBuilder {
if ((kind == AUTO_BUILD || kind == INCREMENTAL_BUILD) && !shouldBuild(profile)) {
return;
}
removeMarkers(profile);
IStringVariableManager varManager = VariablesPlugin.getDefault().getStringVariableManager();
TeaVMTool tool = new TeaVMTool();
tool.setClassLoader(classLoader);
@ -127,6 +126,7 @@ public class TeaVMProjectBuilder extends IncrementalProjectBuilder {
monitor.beginTask("Running TeaVM", 10000);
tool.generate();
if (!tool.wasCancelled()) {
removeMarkers(profile);
putMarkers(tool.getDependencyInfo().getCallGraph(), tool.getProblemProvider().getProblems(),
profile);
setClasses(profile, classesToResources(tool.getClasses()));