mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -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
|
* @author Alexey Andreev
|
||||||
*/
|
*/
|
||||||
public abstract class ArrayBufferView implements JSObject {
|
public abstract class ArrayBufferView implements JSObject {
|
||||||
private ArrayBufferView() {
|
protected ArrayBufferView() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@JSProperty
|
@JSProperty
|
||||||
|
|
|
@ -211,6 +211,9 @@ class JSClassProcessor {
|
||||||
}
|
}
|
||||||
|
|
||||||
private MethodReader findOverridenMethod(String className, MethodReader finalMethod) {
|
private MethodReader findOverridenMethod(String className, MethodReader finalMethod) {
|
||||||
|
if (finalMethod.getName().equals("<init>")) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return classSource.getAncestors(className)
|
return classSource.getAncestors(className)
|
||||||
.skip(1)
|
.skip(1)
|
||||||
.map(cls -> cls.getMethod(finalMethod.getDescriptor()))
|
.map(cls -> cls.getMethod(finalMethod.getDescriptor()))
|
||||||
|
|
|
@ -111,6 +111,9 @@ class JSDependencyListener extends AbstractDependencyListener {
|
||||||
}
|
}
|
||||||
addInterfaces(exposedCls, cls);
|
addInterfaces(exposedCls, cls);
|
||||||
for (MethodReader method : cls.getMethods()) {
|
for (MethodReader method : cls.getMethods()) {
|
||||||
|
if (method.getName().equals("<init>")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (exposedCls.inheritedMethods.containsKey(method.getDescriptor())
|
if (exposedCls.inheritedMethods.containsKey(method.getDescriptor())
|
||||||
|| exposedCls.methods.containsKey(method.getDescriptor())) {
|
|| exposedCls.methods.containsKey(method.getDescriptor())) {
|
||||||
MethodDependency methodDep = agent.linkMethod(method.getReference(), null);
|
MethodDependency methodDep = agent.linkMethod(method.getReference(), null);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user