Skip to content
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

@STJSBridge is ignored for internal classes #66

Closed
npiguet opened this issue Mar 24, 2015 · 0 comments

Comments

@npiguet
Copy link
Member

commented Mar 24, 2015

When a class with @STJSBridger is contained within another class that is not annotated with @STJSBridge, then that class is generated but shouldn't be.

public class Container {
    @STJSBridge
    public static class Data {
        public int id;
        public String name;
        public boolean valid;
    }
}

generates

Container = function() {};
stjs.extend(Container, null, [], function(constructor, prototype) {
    constructor.Data = function() {};
    stjs.extend(Container.Data, null, [], function(constructor, prototype) {
        prototype.id = 0;
        prototype.name = null;
        prototype.valid = false;
    }, {}, {});
}, {}, {});

@onigoetz onigoetz added the Bug label Jul 20, 2015

npiguet added a commit that referenced this issue Jul 27, 2015

@npiguet npiguet closed this in f51001a Jul 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.