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 partial compile regression introduced in 10.1 via #645 #654

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

rbygrave
Copy link
Contributor

Fixes a regression that breaks partial compilation when qualifiers are used.

Regression introduced in 10.1 via:
https://github.com/avaje/avaje-inject/pull/645/files

With this regression we observe compile errors stating that dependencies with qualifiers are missing. When reviewing the relevant generated @metadata dependsOn attributes in the generate source we see that there are qualifiers incorrectly appended to the factory type.

The fix is in the MetaData constructor, such that the dependsOn does NOT use the name/qualifier of the type.

rbygrave added 3 commits July 25, 2024 20:54
10.0-RC5 introduced a regression that stops "Partial Compilation" from working.
This is due to the ProcessingContext.isInjectModule() not correctly detecting
the current module. This meant no existing module was found, no dependency
meta data for the module was read, a new module is created for the components
included in the partial compile and generally that will fail with missing dependencies.

A workaround is to perform a full compile (but this isn't really a workable
solution - its important that partial compile works).
Fixes a regression that breaks partial compilation when qualifiers are used.

Regression introduced in 10.1 via:
https://github.com/avaje/avaje-inject/pull/645/files

With this regression we observe compile errors stating that dependencies with qualifiers are missing. When reviewing the relevant generated @metadata dependsOn attributes in the generate source we see that there are qualifiers incorrectly appended to the factory type.

The fix is in the MetaData constructor, such that the dependsOn does NOT use the name/qualifier of the type.
@rbygrave rbygrave self-assigned this Jul 25, 2024
@rbygrave rbygrave added this to the 10.2 milestone Jul 25, 2024
@rbygrave rbygrave merged commit 8ef1f3d into master Jul 25, 2024
13 checks passed
@rbygrave rbygrave deleted the feature/partial-compile-avajeModule branch July 25, 2024 09:06
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.

1 participant