Prefer Class-File API on Java 24 or above#477
Open
Goooler wants to merge 5 commits intoJakeWharton:trunkfrom
Open
Prefer Class-File API on Java 24 or above#477Goooler wants to merge 5 commits intoJakeWharton:trunkfrom
Goooler wants to merge 5 commits intoJakeWharton:trunkfrom
Conversation
Owner
|
While I generally want this, I think we don't win much with it. Only annoying any users we have that are running older than JDK 24. No one should be running old JDKs, but as we know most people generally do. Maybe once AGP requires JDK 24 (or newer) this will be less hostile of a change. |
Contributor
Author
|
Reasonable. Alternatively, there could be two impls for Java 24 newer or not (Multi-Release JAR?). |
Goooler
commented
Mar 11, 2026
gradle/libs.versions.toml
Outdated
| okio = "com.squareup.okio:okio:3.16.4" | ||
| byteunits = "com.jakewharton.byteunits:byteunits:0.9.1" | ||
| asm = "org.ow2.asm:asm:9.9.1" | ||
| asm = "org.ow2.asm:asm:9.6" |
Contributor
Author
There was a problem hiding this comment.
tree ~/IdeaProjects/diffuse/diffuse/build/install
/Users/goooler/IdeaProjects/diffuse/diffuse/build/install
└── diffuse
├── bin
│ ├── diffuse
│ └── diffuse.bat
└── lib
├── aapt2-proto-9.1.0-14792394.jar
├── annotations-13.0.jar
├── apksig-9.1.0.jar
├── asm-9.6.jar
├── auto-value-annotations-1.6.2.jar
├── binary-resources-32.1.0.jar
├── bundletool-1.18.3.jar
├── byteunits-0.9.1.jar
├── checker-qual-3.5.0.jar
├── clikt-jvm.jar
├── clikt-mordant-jvm.jar
├── colormath-jvm.jar
├── crossword-jvm.jar
├── dagger-2.28.3.jar
├── dalvik-dx-16.0.1.jar
├── diffuse-0.4.0-SNAPSHOT.jar
├── error_prone_annotations-2.11.0.jar
├── failureaccess-1.0.1.jar
├── formats-0.4.0-SNAPSHOT.jar
├── gson-2.8.9.jar
├── guava-30.1-jre.jar
├── io-0.4.0-SNAPSHOT.jar
├── j2objc-annotations-1.3.jar
├── java-diff-utils-4.16.jar
├── javax.inject-1.jar
├── jna-5.14.0.jar
├── jose4j-0.9.5.jar
├── jsr305-3.0.2.jar
├── kotlin-stdlib-2.3.20-RC3.jar
├── kotlin-stdlib-jdk7-1.9.10.jar
├── kotlin-stdlib-jdk8-1.9.10.jar
├── listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
├── mordant-jvm-ffm-jvm.jar
├── mordant-jvm-graal-ffi-jvm.jar
├── mordant-jvm-jna-jvm.jar
├── mordant-jvm.jar
├── mordant-omnibus-jvm.jar
├── okio-jvm-3.16.4.jar
├── picnic-jvm.jar
├── protobuf-java-4.34.0.jar
├── protobuf-java-util-3.22.3.jar
├── reports-0.4.0-SNAPSHOT.jar
└── slf4j-api-1.7.30.jar
4 directories, 45 files
sh ~/IdeaProjects/diffuse/diffuse/build/install/diffuse/bin/diffuse diff --jar ~/Downloads/old.jar ~/Downloads/new.jar
OLD: old.jar
NEW: new.jar
JAR │ old │ new │ diff
───────┼─────────┼─────────┼───────
class │ 1.2 KiB │ 1.2 KiB │ +59 B
other │ 72 B │ 72 B │ 0 B
───────┼─────────┼─────────┼───────
total │ 1.3 KiB │ 1.3 KiB │ +59 B
CLASSES │ old │ new │ diff
─────────┼─────┼─────┼────────────
classes │ 1 │ 1 │ 0 (+0 -0)
methods │ 4 │ 5 │ +1 (+1 -0)
fields │ 1 │ 1 │ 0 (+0 -0)
=================
==== JAR ====
=================
size │ diff │ path
─────────┼───────┼────────────────────────────
1.2 KiB │ +59 B │ ∆ org/example/MainKt.class
─────────┼───────┼────────────────────────────
1.2 KiB │ +59 B │ (total)
=====================
==== CLASSES ====
=====================
METHODS:
old │ new │ diff
─────┼─────┼────────────
4 │ 5 │ +1 (+1 -0)
+ org.example.MainKt main2()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #474.