ppalaga commented on issue #4065: URL: https://github.com/apache/camel-quarkus/issues/4065#issuecomment-2668098229
> Is it during native image execution (e.g. something that gets generated via some kind of build time initialization that runs inside the native image JDK), or is it by Quarkus build before native image gets invoked (e.g. the JDK that compiles the source code and runs maven/gradle)? Or some other phase? We generate the translet class during Quarkus build phase (where only the standard JDK is involved). During that process we create a mapping from XLST URIs to translet FQ class names. That's where the unique and predictable name under which `javax.xml.transform.TransformerFactory` creates the translet class matters. Further, at Quarkus build time we take the translet class bits and push it to Quarkus via `GeneratedClassBuildItem`. Then, when the native executable is running, we always configure the `TransformerFactory` to use the translet class available in the native image, so that native image does not need to generate and load it. So there is no problem with native image generation or runtime. The only problem we have is with the vanilla JDK not storing the generated translet classes where we want it to. -- 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]
