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

This is not correctly printed in case of multiple inner class #1055

Closed
surli opened this issue Dec 20, 2016 · 0 comments · Fixed by #1061
Closed

This is not correctly printed in case of multiple inner class #1055

surli opened this issue Dec 20, 2016 · 0 comments · Fixed by #1061
Labels

Comments

@surli
Copy link
Collaborator

surli commented Dec 20, 2016

In the following structure:

public class Rule {
    public static final class Phoneme implements PhonemeExpr {
        public static final Comparator<Phoneme> COMPARATOR = new Comparator<Phoneme>() {[...]};

        private final StringBuilder phonemeText;
        private final Language language;

        public Phoneme(final CharSequence phonemeText, final Language language) {
            this.phonemeText = new StringBuilder(phonemeText);
            this.language = language;
        }

The last this are printed as following: Rule.Phoneme.this leading to a compilation error because the fields are final.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant