mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix bug in JSO implementation
This commit is contained in:
parent
f6bc6f2fcf
commit
24952e5b86
|
@ -1125,6 +1125,13 @@ class JSClassProcessor {
|
||||||
if (method != null) {
|
if (method != null) {
|
||||||
return method;
|
return method;
|
||||||
}
|
}
|
||||||
|
if (cls.getParent() != null && !cls.getParent().equals(cls.getName())
|
||||||
|
&& !cls.getParent().equals("java.lang.Object")) {
|
||||||
|
method = getMethod(new MethodReference(cls.getParent(), ref.getDescriptor()));
|
||||||
|
if (method != null) {
|
||||||
|
return method;
|
||||||
|
}
|
||||||
|
}
|
||||||
for (String iface : cls.getInterfaces()) {
|
for (String iface : cls.getInterfaces()) {
|
||||||
method = getMethod(new MethodReference(iface, ref.getDescriptor()));
|
method = getMethod(new MethodReference(iface, ref.getDescriptor()));
|
||||||
if (method != null) {
|
if (method != null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user