Skip to content

Fix guards against repeated external sets of SPI implementations#690

Merged
manovotn merged 1 commit intojakartaee:masterfrom
Ladicek:fix-repeated-spi-set-guards
Aug 30, 2023
Merged

Fix guards against repeated external sets of SPI implementations#690
manovotn merged 1 commit intojakartaee:masterfrom
Ladicek:fix-repeated-spi-set-guards

Conversation

@Ladicek
Copy link
Copy Markdown
Member

@Ladicek Ladicek commented Aug 30, 2023

We previously [1] added code to guard against repeated calls to these SPIs:

  • BuildServicesResolver.setBuildServices()
  • CDI.setCDIProvider()

The guards are unfortunately incorrect. This commit fixes them.

[1] 82ec5d7

We previously [1] added code to guard against repeated calls to these SPIs:

- `BuildServicesResolver.setBuildServices()`
- `CDI.setCDIProvider()`

The guards are unfortunately incorrect. This commit fixes them.

[1] jakartaee@82ec5d7
@Ladicek Ladicek added this to the CDI 4.1 milestone Aug 30, 2023
@Ladicek Ladicek requested a review from manovotn August 30, 2023 12:37
@Ladicek
Copy link
Copy Markdown
Member Author

Ladicek commented Aug 30, 2023

Fortunately, the code that we previously added did not make it into any release, it's only in the master branch now. So we can just fix it.

@mkouba
Copy link
Copy Markdown
Contributor

mkouba commented Aug 30, 2023

Fortunately, the code that we previously added did not make it into any release, it's only in the master branch now. So we can just fix it.

Good catch! 👍

Copy link
Copy Markdown
Contributor

@manovotn manovotn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing this!

@manovotn manovotn merged commit 8ead70b into jakartaee:master Aug 30, 2023
@Ladicek Ladicek deleted the fix-repeated-spi-set-guards branch August 30, 2023 13:40
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.

3 participants