mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix constructor publishing in JSO
This commit is contained in:
parent
5592862c70
commit
f5b21f9455
|
@ -23,7 +23,7 @@ import org.teavm.jso.JSProperty;
|
|||
* @author Alexey Andreev
|
||||
*/
|
||||
public abstract class ArrayBufferView implements JSObject {
|
||||
private ArrayBufferView() {
|
||||
protected ArrayBufferView() {
|
||||
}
|
||||
|
||||
@JSProperty
|
||||
|
|
|
@ -211,6 +211,9 @@ class JSClassProcessor {
|
|||
}
|
||||
|
||||
private MethodReader findOverridenMethod(String className, MethodReader finalMethod) {
|
||||
if (finalMethod.getName().equals("<init>")) {
|
||||
return null;
|
||||
}
|
||||
return classSource.getAncestors(className)
|
||||
.skip(1)
|
||||
.map(cls -> cls.getMethod(finalMethod.getDescriptor()))
|
||||
|
|
|
@ -111,6 +111,9 @@ class JSDependencyListener extends AbstractDependencyListener {
|
|||
}
|
||||
addInterfaces(exposedCls, cls);
|
||||
for (MethodReader method : cls.getMethods()) {
|
||||
if (method.getName().equals("<init>")) {
|
||||
continue;
|
||||
}
|
||||
if (exposedCls.inheritedMethods.containsKey(method.getDescriptor())
|
||||
|| exposedCls.methods.containsKey(method.getDescriptor())) {
|
||||
MethodDependency methodDep = agent.linkMethod(method.getReference(), null);
|
||||
|
|
Loading…
Reference in New Issue
Block a user