Skip to content

Commit

Permalink
Fix premature access to RegistryFactory (#8118)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjquinno authored Dec 11, 2023
1 parent 990e5d5 commit 0d3f313
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ private <T extends EntityManager> void saveEntityManagerQualifiers(@Observes
* @exception IOException if an input or output error occurs, typically because a {@code META-INF/persistence.xml}
* resource was found but could not be loaded for some reason
*
* @exception JAXBException if there was a problem {@linkplain Unmarshaller#unmarshal(Reader) unmarshalling} a
* @exception JAXBException if there was a problem {@linkplain Unmarshaller#unmarshal(java.io.Reader) unmarshalling} a
* {@code META-INF/persistence.xml} resource
*
* @exception NullPointerException if either {@code event} or {@code beanManager} is {@code null}
Expand Down Expand Up @@ -2045,7 +2045,7 @@ private void maybeAddPersistenceProviderBean(AfterBeanDiscovery event,

private void onStartup(@Observes
@Initialized(ApplicationScoped.class)
@Priority(LIBRARY_BEFORE)
@Priority(LIBRARY_BEFORE + 20) // Must be later than metrics CDI extension priority
Object event,
@ContainerManaged
Instance<EntityManagerFactory> emfs) {
Expand Down

0 comments on commit 0d3f313

Please sign in to comment.