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

bug in printing of Implicit access to static field #914

Closed
pvojtechovsky opened this issue Oct 28, 2016 · 0 comments
Closed

bug in printing of Implicit access to static field #914

pvojtechovsky opened this issue Oct 28, 2016 · 0 comments

Comments

@pvojtechovsky
Copy link
Collaborator

This code

public class ImplicitStaticFieldReference {
    public static final String ImplicitStaticFieldReference = "c1";
    public String toString() {
        return ImplicitStaticFieldReference;
    }
}

printed with autoImports=true produces invalid reference
bug:

//bug
return ImplicitStaticFieldReference.ImplicitStaticFieldReference;
//expected
return ImplicitStaticFieldReference;

See PR with test

pvojtechovsky added a commit to pvojtechovsky/spoon that referenced this issue Oct 28, 2016
pvojtechovsky added a commit to pvojtechovsky/spoon that referenced this issue Oct 29, 2016
Better implementation which focuses on field and method access. 
More tests added
pvojtechovsky added a commit to pvojtechovsky/spoon that referenced this issue Oct 30, 2016
pvojtechovsky added a commit to pvojtechovsky/spoon that referenced this issue Nov 10, 2016
pvojtechovsky added a commit to pvojtechovsky/spoon that referenced this issue Nov 11, 2016
pvojtechovsky added a commit to pvojtechovsky/spoon that referenced this issue Nov 14, 2016
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