This is an automated email from the ASF dual-hosted git repository.
bitstorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/master by this push:
new 6dbf6ae9cb skip OpenRewrite test on JDK 27, 28
6dbf6ae9cb is described below
commit 6dbf6ae9cb277ea8d23602066e97f040d8ee3c0e
Author: Andrea Del Bene <[email protected]>
AuthorDate: Fri Nov 20 10:19:53 2026 +0100
skip OpenRewrite test on JDK 27, 28
---
wicket-migration/pom.xml | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/wicket-migration/pom.xml b/wicket-migration/pom.xml
index f1517e9067..b042d05590 100644
--- a/wicket-migration/pom.xml
+++ b/wicket-migration/pom.xml
@@ -167,4 +167,32 @@
<scope>test</scope>
</dependency>
</dependencies>
+ <profiles>
+ <!--
+ OpenRewrite's Java parser reflects into the running JDK's javac
internals
+ (JavaCompiler.genEndPos), which was removed in JDK 27, causing
+ "IllegalStateException: Unable to construct Java25Parser".
+ Skip the rewrite-based tests when the build runs on JDK 27 or 28.
+ For LTS (29) OpenRewrite should provide a fix (see
https://github.com/openrewrite/rewrite/issues/8991).
+ -->
+ <profile>
+ <id>skip-rewrite-tests-on-jdk27-plus</id>
+ <activation>
+ <jdk>[27,28]</jdk>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/*Test.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>