Add java8-to-25 module: legacy Java 8 app run on JDK 8, 17 and 25, tool coverage, JVM flags, libraries, OpenRewrite and the fixed version

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6vDJ5fWY5uEZaJFNi
This commit is contained in:
Claude
2026-12-03 23:45:00 +05:30
parent 3502fd7804
commit 94f8a0e003
82 changed files with 2152 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ankurm</groupId>
<artifactId>mixed-namespaces</artifactId>
<version>1.0</version>
<properties>
<maven.compiler.release>25</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- A half-finished migration: old annotations still on the beans ... -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<!-- ... but the new jakarta runtime doing the work. -->
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>4.0.9</version>
</dependency>
</dependencies>
</project>
@@ -0,0 +1,16 @@
import java.io.StringWriter;
import jakarta.xml.bind.JAXBContext;
import javax.xml.bind.annotation.XmlRootElement;
public class Mixed {
@XmlRootElement(name = "order")
public static class Order {
public String id = "A-1";
}
public static void main(String[] args) throws Exception {
StringWriter out = new StringWriter();
JAXBContext.newInstance(Order.class).createMarshaller().marshal(new Order(), out);
System.out.println(out);
}
}