mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -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);
|
||||
virtualTables.put(className, table);
|
||||
ClassReader cls = classSource.get(className);
|
||||
if (cls == null) {
|
||||
return;
|
||||
}
|
||||
if (cls.getParent() != null) {
|
||||
fillClass(cls.getParent());
|
||||
VirtualTable parentTable = virtualTables.get(cls.getParent());
|
||||
|
|
|
@ -44,6 +44,6 @@ public class ManagedMethodRepository {
|
|||
return false;
|
||||
}
|
||||
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