-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Getters and setters cannot have same name #397
Comments
I believe the issue is that we are creating multiple (two in this case) method elements with the same name. As a result they are all equals(), which means that the info for one will overwrite the info for the first. The solution is to make them unique. The hard part is that we don't currently have a good way to do that. Note that this will also be a problem for incorrect code, such as code in which the user has attempted to overload a method name. Our model ought to be able to represent this, but currently cannot. The most straightforward solution I can think of at the moment is to use the occurrenceCount field to differentiate between these elements. (Accessing other data doesn't work because we need to access the info to get it, which requires a hash table lookup, which leads to an infinite loop.) |
Set owner to @bwilkerson. |
Fixed by http://codereview.chromium.org/8527002/ Added Fixed label. |
The model does not allow getters and setters of the same name. In the Outline view, the method name shows up twice, but they both point to just one of the methods.
The text was updated successfully, but these errors were encountered: