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

Fix parameter expressions for executable methods #10469

Merged
merged 4 commits into from
Feb 9, 2024
Merged

Fix parameter expressions for executable methods #10469

merged 4 commits into from
Feb 9, 2024

Conversation

dstepanov
Copy link
Contributor

No description provided.

@dstepanov dstepanov added the type: bug Something isn't working label Feb 8, 2024
@dstepanov dstepanov added this to the 4.3.5 milestone Feb 8, 2024
@@ -95,6 +97,11 @@ public void processEvaluatedExpressions(MethodElement methodElement) {
return new ExpressionWithContext(expression, evaluationContext);
})
.forEach(this::addExpression);

ClassElement resolvedThis = methodElement.isStatic() || methodElement instanceof ConstructorElement ? null : methodElement.getOwningType();
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you add a tests:

for methodElement.isStatic() evaluates to true
methodElement instanceof ConstructorElement evaluates to true

?

Copy link

sonarcloud bot commented Feb 9, 2024

Please retry analysis of this Pull-Request directly on SonarCloud

@sdelamo sdelamo merged commit 919924b into 4.3.x Feb 9, 2024
14 of 15 checks passed
@sdelamo sdelamo deleted the paramexp branch February 9, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants