Closed generalmimon closed 2 years ago
@dgelessus Thanks for your feedback!
Can confirm it works as expected on my machine as well. 🙂
Although at first I ran into an error during mvn package
on Java 17:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (attach-javadocs) on project kaitai-struct-runtime: Execution attach-javadocs of goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar: java.lang.ExceptionInInitializerError: null
I was able to fix that by updating the maven-javadoc-plugin
to version 3.2.0 (the last version to support Java 7).
@dgelessus:
I was able to fix that by updating the
maven-javadoc-plugin
to version 3.2.0 (the last version to support Java 7).
Thanks for looking into this, I've just did exactly that!
@dgelessus:
I was going to suggest that after merging, we should make a small patch release 0.9.1 to restore Java 7 compatibility for the release version of the compiler.
I actually wanted to release KS 0.10 in the nearest future (that's why I am hunting down the issues more
intensively than usual, as I try to get particularly the compiler ready for the release). I tried to get @GreyCat to cooperate, requesting the access to the io.kaitai
org at Maven Central and also hoping we could release 0.10 together (as we did with 0.9), but I wrote him already on June 15 (with a few reminders since then) and I still don't have any response.
I am able to publish almost everything myself; however, Maven Central is about the only thing I don't have access to. So perhaps I can do that regardless, and hopefully he'll follow up with that Maven Central repo afterwards (I have no idea when, though).
Fix #34
I checked that using the new
pom.xml
, the package compiled bymvn package
is compatible with Java 7 and Java 8 (in particular, the problem reported in #34 no longer occurs) regardless of the Java version used for compilation, unlike the oldpom.xml
- here is the summary of test results performed in a GitHub Actions workflow:Before (
generalmimon:set-jdk-7-in-pom-xml
):✔️
✔️
✔️
✔️
✔️
❌
❌
✔️
✔️
✔️
❌
❌
✔️
✔️
✔️
❌
❌
✔️
✔️
✔️
After (
kaitai-io:build-for-java-7
):✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️
✔️