-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS Backend : Bug when a method is overloaded on an abstract class that implements JSObject #997
Comments
I believe it's close to the expected behaviour. By declaring |
OK, now I understand. So I've had this problem because I'm trying to export the Child class in a module but I can't... I've tried adding the class to |
@cmorin28 how did you figure out that these classes aren't exported? Did you try to instantiate them and got error? What was this error like? Did you annotate constructor with |
Perhaps, you need to specify exported names explicitly with |
I have tried to move each class into separate files and I have added |
@konsoletyper I've tried lots of things, but nothing works. Is there any way of debugging the compiler to help understand this behaviour? |
Looks like due to a bug, constructor is not exported when there aren't any methods exported. So this works for me: @JSExportClasses({ MainClass.Child.class })
public class MainClass {
public static class Parent {
public Parent() {
this.test();
}
protected void test() {
System.out.println("test parent");
}
}
public static class Child extends Parent {
@JSExport
public Child() {
}
@Override
protected void test() {
super.test();
System.out.println("test child");
}
@JSExport
public static void ttt() {
}
}
} |
Hello,
I have an unexpected bug that I can't understand. I'm working with the JS backend and I've this type of relationship between my classes :
In this case, Parent class is absent :
but, if I remove
implements JSObject
on the parent class, it's working fine :The text was updated successfully, but these errors were encountered: