mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
Fix compilation of WebAssembly samples
This commit is contained in:
parent
de14a57fe1
commit
c82ed6746a
|
@ -61,6 +61,9 @@ public class VirtualTableProvider {
|
||||||
VirtualTable table = new VirtualTable(className);
|
VirtualTable table = new VirtualTable(className);
|
||||||
virtualTables.put(className, table);
|
virtualTables.put(className, table);
|
||||||
ClassReader cls = classSource.get(className);
|
ClassReader cls = classSource.get(className);
|
||||||
|
if (cls == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (cls.getParent() != null) {
|
if (cls.getParent() != null) {
|
||||||
fillClass(cls.getParent());
|
fillClass(cls.getParent());
|
||||||
VirtualTable parentTable = virtualTables.get(cls.getParent());
|
VirtualTable parentTable = virtualTables.get(cls.getParent());
|
||||||
|
|
|
@ -44,6 +44,6 @@ public class ManagedMethodRepository {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
MethodReader method = cls.getMethod(methodReference.getDescriptor());
|
MethodReader method = cls.getMethod(methodReference.getDescriptor());
|
||||||
return method.getAnnotations().get(Unmanaged.class.getName()) == null;
|
return method == null || method.getAnnotations().get(Unmanaged.class.getName()) == null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user