mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Fix compiler crash when service enumerated in META-INF/service does not exist
This commit is contained in:
parent
07f946e710
commit
2f73272ed7
|
@ -62,9 +62,11 @@ public class ServiceLoaderSupport extends AbstractDependencyListener implements
|
||||||
writer.append(", ");
|
writer.append(", ");
|
||||||
}
|
}
|
||||||
String implName = implementations.get(i);
|
String implName = implementations.get(i);
|
||||||
writer.append("[").appendClass(implName).append(", ").appendMethodBody(
|
if (context.getClassSource().getClassNames().contains(implName)) {
|
||||||
new MethodReference(implName, new MethodDescriptor("<init>", ValueType.VOID)))
|
writer.append("[").appendClass(implName).append(", ").appendMethodBody(
|
||||||
.append("]");
|
new MethodReference(implName, new MethodDescriptor("<init>", ValueType.VOID)))
|
||||||
|
.append("]");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
writer.append("];").softNewLine();
|
writer.append("];").softNewLine();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user