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

Tracking when Object.toString is deterministic #198

Open
mernst opened this issue Aug 27, 2020 · 0 comments
Open

Tracking when Object.toString is deterministic #198

mernst opened this issue Aug 27, 2020 · 0 comments

Comments

@mernst
Copy link
Collaborator

mernst commented Aug 27, 2020

Sometimes, all the values flowing to a call to toString have overridden Object.toString, even if the expression's declared type doesn't do so.
The Determinism Checker should track this information.
This will enable it to determine what calls to Object.toString are legal, eliminating a source of false positives.

One possible design would have this type hierarchy:

@OverridesToStringUnknown  -- the value's run-time class might not override Object.toString
       |
@OverridesToString  -- the value's run-time class definitely overrides Object.toString
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