This commit adds a fallback to Thread.currentThread().getContextClassLoader().getResourceAsStream(file) in the ClasspathHelper class.
Previously, if the ClasspathHelper.class.getResourceAsStream(file) and ClassLoader.getSystemResourceAsStream(file) methods returned null, no further attempts were made to load the resource, which caused issues in Quarkus applications in dev mode.
This commit adds an additional fallback to Thread.currentThread().getContextClassLoader().getResourceAsStream(file) to improve compatibility with the Quarkus class loading model.
This commit adds a fallback to
Thread.currentThread().getContextClassLoader().getResourceAsStream(file)
in theClasspathHelper
class.Previously, if the
ClasspathHelper.class.getResourceAsStream(file)
andClassLoader.getSystemResourceAsStream(file)
methods returnednull
, no further attempts were made to load the resource, which caused issues in Quarkus applications in dev mode.This commit adds an additional fallback to
Thread.currentThread().getContextClassLoader().getResourceAsStream(file)
to improve compatibility with the Quarkus class loading model.Related Issue: #1968