You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The native image agent configuration filters don't work well with resource configuration.
For example, say you have this call I want to filter out (coming from resources-origins.txt generated using experimental-configuration-with-origins) option:
The problem is that one cannot really filter java.util.ServiceLoader because that would filter out all service loader calls. What you want to filter is service loader calls coming from org.apache.maven.surefire package. Setting to exclude that package doesn't work because the caller does not match that package.
Here's the filter I used (set on both access-based and caller-based) filtes:
The native image agent configuration filters don't work well with resource configuration.
For example, say you have this call I want to filter out (coming from
resources-origins.txt
generated usingexperimental-configuration-with-origins
) option:When you look at the
trace-output
JSON file it says:The problem is that one cannot really filter
java.util.ServiceLoader
because that would filter out all service loader calls. What you want to filter is service loader calls coming fromorg.apache.maven.surefire
package. Setting to exclude that package doesn't work because the caller does not match that package.Here's the filter I used (set on both access-based and caller-based) filtes:
The resulting resources configuration contains:
This is not limited to just service loader, other JDK calls are also affected, e.g.
ClassLoader.getResourceAsStream
:I have a filter in place for
io.quarkus.**
but the resources configuration file still contains a registration forAutoCloseable
:If you look at the trace output it shows:
The text was updated successfully, but these errors were encountered: