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

Fixed FileNotFoundExecption during JavaParser work #1303

Merged
merged 2 commits into from
Nov 7, 2022

Conversation

amandelpie
Copy link
Collaborator

@amandelpie amandelpie commented Nov 3, 2022

Description

Fixes #1227 #1204

The main problem was the following: JavaParser tries to parse ZipEntry in zip archive with JDK sources.
ZipEntry is not a file.

To filter this situation, we decided to ignore these zipped sources from the standard library. In reality, we ignored it before @Domonion changes in the #1151 PR.

We extended our scope and failed when faced with these issues.

The proposed solution helps to avoid situation with parsing of non-existing files and also improves the logging for some edge situations.

Type of Change

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

How Has This Been Tested?

Manual Scenario

One of scenarios is described also in the ticket #1204

Checklist (remove irrelevant options):

This is the author self-check list

  • 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
  • All tests pass locally with my changes

@amandelpie amandelpie marked this pull request as ready for review November 3, 2022 13:15
@amandelpie amandelpie merged commit 5cc9800 into main Nov 7, 2022
@amandelpie amandelpie deleted the amandelpie/feature-1227 branch November 7, 2022 09:15
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.

Summaries are not generated due to FileNotFoundException
2 participants