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

Get PsiClass' package by declaration in containingFile and not by its directory #1081#1111

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

Conversation

@volivan239
Copy link
Collaborator

Description

If package in which class was put doesn't match its directory, we should usepackageName of containingPsiFile aspackageName for class (and not the directory of containing file).

Fixes#1081

Type of Change

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

Manual Scenario

Checked on scenario from#1081 (both when we launch action on misplaced class and when we launch action on method in other class where misplaced class is used) -- tests are generated correctly (although, IDEA can't always correctly handle wrong package).

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

@volivan239volivan239force-pushed thevolivan239/fix_classnotfound_wrong_package branch from99f38a1 to5569063CompareOctober 7, 2022 08:56
@volivan239volivan239 marked this pull request as ready for reviewOctober 7, 2022 08:56
@volivan239volivan239 merged commit5c15902 intomainOct 7, 2022
@volivan239volivan239 deleted the volivan239/fix_classnotfound_wrong_package branchOctober 7, 2022 09:47
@alisevychalisevych added this to the2022.10.1 Release milestoneOct 10, 2022
AbdullinAM pushed a commit to AbdullinAM/UTBotJava that referenced this pull requestOct 17, 2022
AbdullinAM pushed a commit to AbdullinAM/UTBotJava that referenced this pull requestOct 17, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Vassiliy-KudryashovVassiliy-KudryashovVassiliy-Kudryashov approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ClassNotFoundException in IDE when Java class is put in wrong package

4 participants

@volivan239@Vassiliy-Kudryashov@alisevych

[8]ページ先頭

©2009-2025 Movatter.jp