lburgazzoli commented on issue #1010: camle-tagsoup extension tests  fails in 
native mode on Jdk 11
URL: https://github.com/apache/camel-quarkus/issues/1010#issuecomment-607244028
 
 
   So I've experimented by creating a substitution like:
   
   ```java
   import javax.xml.transform.TransformerFactory;
   import javax.xml.transform.TransformerFactoryConfigurationError;
   
   import com.oracle.svm.core.annotate.Substitute;
   import com.oracle.svm.core.annotate.TargetClass;
   import org.apache.xalan.xsltc.trax.TransformerFactoryImpl;
   
   @TargetClass(className = "javax.xml.transform.TransformerFactory")
   final class TransformerFactorySubstitution {
       @Substitute
       public static TransformerFactory newDefaultInstance() {
           return new TransformerFactoryImpl();
       }
   
       @Substitute
       public static TransformerFactory newInstance() throws 
TransformerFactoryConfigurationError {
           return newDefaultInstance();
       }
   }
   ```
   
   Which basically force to use `TransformerFactoryImpl` from `xalan` artifact 
and this appears to fix the issue but I don't know if it can be an acceptable 
solution.
   
   @ppalaga @jamesnetherton WDYT ?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to