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

Explain the need having three validateTargetLocationsXX methods #582

Closed
wants to merge 9 commits into from

Conversation

AndrewShf
Copy link
Member

@AndrewShf AndrewShf commented Oct 3, 2023

Explain the conceptual differences between BaseTypeVisitor#validateVariablesTargetLocation and BaseTypeVisitor#validateTargetLocation.

Copy link
Member

@wmdietl wmdietl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just a few small comments.

* BaseTypeVisitor#validateTargetLocation(Tree, AnnotatedTypeMirror, TypeUseLocation)} is that
* this one is only used in {@link BaseTypeVisitor#visitVariable(VariableTree, Void)}. The three
* different validate methods in the visitor and validator file achieve the same goal and the
* need for having three is due to implementation reasons. We perform checks for types in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are documenting the implementation here. So don't say due to implementation reasons, but instead what those reasons are.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I clarify the need of having three different validating methods on each method and refer to each other. I think that's better now, please have a look.

@AndrewShf AndrewShf assigned wmdietl and unassigned AndrewShf Oct 23, 2023
@AndrewShf
Copy link
Member Author

Screen Shot 2023-11-21 at 8 56 14 PM

misc_jdk8 failed but misc_jdk11 and misc_jdk17 passed. I re-check the method signature written in the javadoc and am still not sure the cause of the failure

@wmdietl
Copy link
Member

wmdietl commented Jun 30, 2024

Follow-up work in #798.

@wmdietl wmdietl closed this Jun 30, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants