Skip to content

Fix NoClassDefFoundError in Kotlin projects #1793 #1840

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

Conversation

sofurihafe
Copy link
Member

Description

This PR hot-fixes the bug regarding Kotlin version update by storing necessary methods (isGetter, isSetter) from Kotlin library as utility methods in order to have them regardless of Kotlin version. Those meant to be deleted after plugin Kotlin version transition from 1.7.10 to a higher version.

Fixes #1793

How to test

Automated tests

Not relevant.

Manual tests

Run runIde, create new Kotlin project with Kotlin version 1.8.10 or higher installed. Verify that the plugin works fine when trying to open the generation window and generate tests.

@sofurihafe sofurihafe added the ctg-bug-fix PR is fixing a bug label Feb 22, 2023
@Vassiliy-Kudryashov Vassiliy-Kudryashov enabled auto-merge (squash) February 22, 2023 12:09
@Vassiliy-Kudryashov Vassiliy-Kudryashov merged commit ed7d1aa into main Feb 22, 2023
@Vassiliy-Kudryashov Vassiliy-Kudryashov deleted the andrey-t/kotlin_versions_compatibility_problem branch February 22, 2023 12:20
@alisevych
Copy link
Member

@sofurihafe Please add comp-* label

@EgorkaKulikov EgorkaKulikov added the comp-ui Improvements of plugin UI appearence and functionality label Feb 22, 2023
sofurihafe added a commit that referenced this pull request Feb 27, 2023
Add builtin Kotlin methods as util methods
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
@alisevych alisevych added the lang-kotlin Issue is related to Kotlin language support label Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-ui Improvements of plugin UI appearence and functionality ctg-bug-fix PR is fixing a bug lang-kotlin Issue is related to Kotlin language support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NoClassDefFoundError from GenerateTestsAction is thrown in IDEA when a Kotlin class is right-clicked
4 participants