jomin7 opened a new issue, #8481: URL: https://github.com/apache/camel-quarkus/issues/8481
### Bug description The native build for the mina-sftp component fails on GraalVM 21.0.1 with a DeletedElementException. This occurs because SftpFileSystemProvider is substituted with @delete, but it remains referenced in the ServiceLoader configuration. Error: ``` Fatal error: org.graalvm.compiler.debug.GraalError: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type org.apache.sshd.sftp.client.fs.SftpFileSystemProvider is reachable ``` Root Cause: GraalVM 21.0.1: ServiceLoader processing is independent of substitutions. If META-INF/services/java.nio.file.spi.FileSystemProvider points to a deleted class, the build fails when the heap scanner reaches that entry. GraalVM 23.0.1+: Handles this by automatically ignoring service entries that point to substituted/deleted types. Proposed Fix/Workaround: For compatibility with GraalVM 21.x, the service file must be manually excluded. In a Quarkus-based environment, this can be handled via a BuildStep -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
