Skip to content

Treat Kotlin getters/setters as KnownImplicitlyDeclaredMethods #1338 #1339 #1341

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

Merged
merged 1 commit into from
Nov 11, 2022

Conversation

volivan239
Copy link
Collaborator

Description

Added filtering of Kotlin autogenerated getters/setters to ExecutableId.isKnownImplicitlyDeclaredMethod. Also added some checks to prevent using Kotlin reflection on facade classes -- see KT-16479

Fixes #1338, #1339

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manual Scenario

Launched cli on examples from #1338 and #1339 -- works as expected

Checklist (remove irrelevant options):

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • New documentation is provided or existed one is altered
  • No new warnings
  • New tests have been added
  • All tests pass locally with my changes

@volivan239 volivan239 force-pushed the volivan239/fxing_kotlin_cli branch from fba45a1 to 336e03e Compare November 9, 2022 14:27
@volivan239 volivan239 linked an issue Nov 9, 2022 that may be closed by this pull request
@volivan239 volivan239 marked this pull request as ready for review November 9, 2022 14:34
Copy link
Member

@Damtev Damtev left a comment

Choose a reason for hiding this comment

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

LGTM

@volivan239 volivan239 merged commit 1320f17 into main Nov 11, 2022
@volivan239 volivan239 deleted the volivan239/fxing_kotlin_cli branch November 11, 2022 08:59
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.

Support top-level Kotlin functions in CLI Tests for autogenerated Kotlin getters/setters shouldn't be generated in cli and contest estimator
2 participants