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

fix: use input classloader for import resolution #3454

Merged
merged 3 commits into from
Jun 21, 2020

Conversation

loetifuss
Copy link
Contributor

This PR addresses the problem observed in #3420
If an input classloader is specified in Environment it should be used to resolve imports.
Otherwise only imported classes on the same class loader as JDTImportBuilder are found.

To reproduce the problem see tests in spoon.support.compiler.jdt.JDTImportBuilderTest

@monperrus monperrus changed the title fix: respect input classloader for import resolution fix: use input classloader for import resolution Jun 21, 2020
@monperrus monperrus merged commit 50520a9 into INRIA:master Jun 21, 2020
@monperrus
Copy link
Collaborator

Thanks a lot @loetifuss We love PRs with test + fix :-)

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.

2 participants