From fac91c315ec0c892036fb047c8efc919582e2e4f Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Wed, 6 Sep 2023 15:13:00 +0300 Subject: [PATCH] TransformerFactory not "used" with GraalVM for JDK 21 (23.1) javax.xml.transform.TransformerFactory does not appear as used in GraalVM for JDK 21's reports due to inlining. Closes #35676 --- .../it/jpa/postgresql/JPAFunctionalityInGraalITCase.java | 2 +- .../it/jpa/postgresql/JPAFunctionalityInGraalITCase.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/integration-tests/jpa-postgresql-withxml/src/test/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityInGraalITCase.java b/integration-tests/jpa-postgresql-withxml/src/test/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityInGraalITCase.java index 233fdc491238e9..edeba3b437b4d1 100644 --- a/integration-tests/jpa-postgresql-withxml/src/test/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityInGraalITCase.java +++ b/integration-tests/jpa-postgresql-withxml/src/test/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityInGraalITCase.java @@ -23,7 +23,7 @@ public void verifyJDKXMLParsersAreIncluded() { //And finally verify we included the JDK XML by triggering //io.quarkus.jdbc.postgresql.runtime.graal.SQLXLMFeature - report.assertContains(javax.xml.transform.TransformerFactory.class); + report.assertContains("com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"); } } diff --git a/integration-tests/jpa-postgresql/src/test/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityInGraalITCase.java b/integration-tests/jpa-postgresql/src/test/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityInGraalITCase.java index e6c12a6fc91277..06e3c5e13e9e74 100644 --- a/integration-tests/jpa-postgresql/src/test/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityInGraalITCase.java +++ b/integration-tests/jpa-postgresql/src/test/java/io/quarkus/it/jpa/postgresql/JPAFunctionalityInGraalITCase.java @@ -24,6 +24,7 @@ public void verifyJdkXmlParsersHavebeenEcludedFromNative() { //And finally verify we managed to exclude the JDK XML because of having hinted the analysis //(See io.quarkus.jdbc.postgresql.runtime.graal.SQLXLMFeature ) report.assertContainsNot(javax.xml.transform.TransformerFactory.class); + report.assertContainsNot("com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"); } }