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

@Namespace is ignored on fully qualified static method calls #62

Closed
npiguet opened this issue Feb 13, 2015 · 0 comments
Closed

@Namespace is ignored on fully qualified static method calls #62

npiguet opened this issue Feb 13, 2015 · 0 comments

Comments

@npiguet
Copy link
Member

npiguet commented Feb 13, 2015

The following Java code:

package org.stjs.generator.writer.namespace;
public class Namespace10 {
    public void invoke(){
        org.stjs.generator.writer.namespace.Namespace1.staticMethod();
    }
}

Generates the following JS code:

var Namespace10 = function() {};
stjs.extend(Namespace10, null, [], function(constructor, prototype) {
    prototype.invoke = function() {
        Namespace1.staticMethod();
    };
}, {}, {});

Where Namespace1 is annotated with @Namespace("a.b").

Line 4 in the JS code is obviously ignoring the @Namespace annotation. Line 4 is expected to be

a.b.Namespace1.staticMethod();
npiguet added a commit that referenced this issue Feb 13, 2015
npiguet pushed a commit that referenced this issue Feb 14, 2015
npiguet pushed a commit that referenced this issue Feb 14, 2015
@npiguet npiguet closed this as completed Feb 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant