You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So we're migrating Okio from Burst to TestBalloon in lysine-dev/okio#1865, and apparently, the minimum supported version of the JVM is 8. I am curiously to why and if v8 could be possibbly supported
Thank you for bringing this up! Technically, TestBalloon can support Java 8 with some minor tweaks. I have a working prototype locally with all tests green.
Note that targeting Java 8 became deprecated in Java 25. Targeting a higher version of Java might become the default soon.
So does it make sense to go back to Java 8 as the minimum target now when it looks like it might not be sustainable? But that would be the same story for Okio, so I wonder how you're planning to handle the scenario.
I couldn't find the source explaining the deprecation of the Java 8 target. For TestBalloon (and others) the main point that matters is that we don't accidentally exclude Java >25 users. I understand that this is not the case, right?
No, lowering compatibility will never exclude a newer JDK. That warning is for javac producing new bytecode, not consuming it. You can still run a library compiled against Java 1.0 with JDK 26 even though it can't produce Java 1.0 bytecode.
So then let's just do it. The Java 8 support sits on top of a major refactoring adding support for multiple KGP versions (required for configuration changes in Kotlin 2.4.20 and above). I'd suggest to
release 1.1.0 today (still with JDK 11 minimum),
release 1.2.0-Beta1 with the new Gradle plugin structure and JDK 8 minimum over the weekend.
I wonder whether the JVM 8 downgrading of TestBalloon is actually effective, because TestBalloon's transitive JUnit Platform dependencies like junit-platform-commons-1.13.4.jar still target class file version 53.0 (Java 9).
In addition, Okio depends on the newer version junit-platform-commons-1.14.4.jar which targets same class file version 53.0 (Java 9). Also, in RealBufferedSource it overrides java.io.InputStream#transferTo which is documented as @since 9+.
A possible cause could be that in the JUnit Platform case, Tapmoc indicates that only the module-info.class files are affected, not the regular ones:
w: .../org.junit.platform/junit-platform-commons/1.13.4/8f63c7ed05b473d95cc63d1082054d7bfcf9c0e5/junit-platform-commons-1.13.4.jar:module-info.class targets class file version 53.0 (Java 9) which is newer than supported <= 52 (Java 8).
w: .../org.junit.platform/junit-platform-engine/1.13.4/cdd49063ae6e25494d1a9a08f4a9ab5de2b73bcb/junit-platform-engine-1.13.4.jar:module-info.class targets class file version 53.0 (Java 9) which is newer than supported <= 52 (Java 8).
w: .../org.opentest4j/opentest4j/1.3.0/152ea56b3a72f655d4fd677fc0ef2596c3dd5e6e/opentest4j-1.3.0.jar:module-info.class targets class file version 53.0 (Java 9) which is newer than supported <= 52 (Java 8).
Activity
wilburx9 commentedon Sep 1, 2026
If this is something you'd like to support, I can take a stab at it.
OliverO2 commentedon Sep 3, 2026
Thank you for bringing this up! Technically, TestBalloon can support Java 8 with some minor tweaks. I have a working prototype locally with all tests green.
I have one question about the migration path. @martinbonnin states in these guidelines:
So does it make sense to go back to Java 8 as the minimum target now when it looks like it might not be sustainable? But that would be the same story for Okio, so I wonder how you're planning to handle the scenario.
martinbonnin commentedon Sep 3, 2026
It's always a tradeoff between modern tools and compatibility. As long as the latest Javac supports Java8, the most compatible choice is still 8.
I suspect Javac will probably keep Java8 support around for some time since it's soooo ubiquitously used.
For the record, the policy for
-sourceand-targetis at https://openjdk.org/jeps/182 (tracking issue).-source/-target 1.7was removed in Java 20.No more indication about the removal of
-source/-target 1.8but according to the policy, that could happen anytime soonOliverO2 commentedon Sep 3, 2026
I couldn't find the source explaining the deprecation of the Java 8 target. For TestBalloon (and others) the main point that matters is that we don't accidentally exclude Java >25 users. I understand that this is not the case, right?
JakeWharton commentedon Sep 3, 2026
No, lowering compatibility will never exclude a newer JDK. That warning is for
javacproducing new bytecode, not consuming it. You can still run a library compiled against Java 1.0 with JDK 26 even though it can't produce Java 1.0 bytecode.OliverO2 commentedon Sep 3, 2026
So then let's just do it. The Java 8 support sits on top of a major refactoring adding support for multiple KGP versions (required for configuration changes in Kotlin 2.4.20 and above). I'd suggest to
Would that work for you?
JakeWharton commentedon Sep 3, 2026
Yep! Thanks!
OliverO2 commentedon Sep 7, 2026
Addressed in b952b59, released in 1.2.0-Beta1.
Lower the minimum supported JDK version from 11 to 8 (closing infix-d…
OliverO2 commentedon Sep 17, 2026
I wonder whether the JVM 8 downgrading of TestBalloon is actually effective, because TestBalloon's transitive JUnit Platform dependencies like
junit-platform-commons-1.13.4.jarstill target class file version 53.0 (Java 9).In addition, Okio depends on the newer version
junit-platform-commons-1.14.4.jarwhich targets same class file version 53.0 (Java 9). Also, inRealBufferedSourceit overridesjava.io.InputStream#transferTowhich is documented as@since 9+.JakeWharton commentedon Sep 18, 2026
We override it but without the annotation specifically because we don't require Java 9.
OliverO2 commentedon Sep 18, 2026
Any idea why the
junit-platform-commons-1.14.4test dependency doesn't hurt, but the TestBalloon 1.1 one did?OliverO2 commentedon Sep 18, 2026
A possible cause could be that in the JUnit Platform case, Tapmoc indicates that only the
module-info.classfiles are affected, not the regular ones:martinbonnin commentedon Sep 21, 2026
Tapmoc doesn't parse multi-release jars. I have opened a follow up issue here