Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enum classes are instantiated correctly if some methods are overriden#1408

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
EgorkaKulikov merged 2 commits intomainfromegor/enum_constants_bug
Nov 23, 2022

Conversation

@EgorkaKulikov
Copy link
Collaborator

@EgorkaKulikovEgorkaKulikov commentedNov 22, 2022
edited
Loading

Description

Sometimes enum constants override some methods of their enum
So we have an instance of anonymous class instead of enum, that can't be instantiated withClass.forName

Fixed in accordance with an advice from DimaTimofeev
image

Fixes # (1210)

Type of Change

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

How Has This Been Tested?

Automated Testing

standard utbot-pipeline

Manual Scenario

standard enum regression testing

@EgorkaKulikovEgorkaKulikov linked an issueNov 22, 2022 that may beclosed by this pull request
Copy link
Collaborator

@volivan239volivan239 left a comment

Choose a reason for hiding this comment

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

Asorg.utbot.examples.enums.ComplexEnumExamplesTest#testFindState is working correctly, it is now needed to think if#617 is closed by this.

@EgorkaKulikovEgorkaKulikovenabled auto-merge (squash)November 23, 2022 15:26
@EgorkaKulikovEgorkaKulikov merged commit9d08eb8 intomainNov 23, 2022
@EgorkaKulikovEgorkaKulikov deleted the egor/enum_constants_bug branchNovember 23, 2022 15:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@volivan239volivan239volivan239 approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Enum class is addressed incorrectly

3 participants

@EgorkaKulikov@volivan239

[8]ページ先頭

©2009-2025 Movatter.jp