-
Notifications
You must be signed in to change notification settings - Fork 360
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
Implicit "this" passed through non-static inner class loses @UnderInitialization #409
Comments
I have created a smaller version of this test case and committed it as |
There already is a |
Thanks for pointing that out! I have moved the smaller test case, replacing the larger one. |
This pull request corrects the type of both implicit and explicit `this` references by correctly computing the enclosing type of `this`. This pull request fixes two kinds of bugs: 1. The type of `Outer.this` when used in an inner class. (Issues #352, #2208, and #3561.) 2. For the Initialization Checker, the type of `Outer.this` when used in an anonymous class declared in a constructor. (Issues #354, part of #904, and #3408) #409 (and other duplicate issues) is a related bug in the Initialization Checker, but isn't fixed by this PR. Closes #352, closes #354, closes #2208, closes #3266, closes #3408 and closes #3561.
Original issue reported on code.google.com by
eatnumb...@google.com
on 9 Mar 2015 at 8:41The text was updated successfully, but these errors were encountered: