release 1.0 binaries are available on Maven here,
<dependency>
<groupId>org.eclipse.microprofile.context-propagation</groupId>
<artifactId>microprofile-context-propagation-api</artifactId>
<version>1.0</version>
</dependency>
I'm working on getting through the remaining process for announcing the release and so forth
So, while trying to run the TCK with Quarkus I came across this one bit in tests - https://github.com/eclipse/microprofile-context-propagation/blob/master/tck/src/main/java/org/eclipse/microprofile/context/tck/ThreadContextTest.java#L155-L160
This gives me crashes with IllegalAccessException
probably because of class loader black magic that quarkus uses to execute Arquillian.
Nonetheless, I find this approach very awkward at best, does anyone happen to remember why it's there?
We could simply call (for instance) CDI.current().select(UserTransaction.class).isResolvable()
@ManagedExecutorConfig
) the TCK tests went out of their way to ensure that an implementation could pass when CDI was not available.
InitialContext.doLookup()
wont work as we dont have EJBs thereCDI.current()
(throws IllegalStateException
is no provider is found) and if that's ok, then proceed using Instance.select()
just without the reflections since we depend in the API anyway?