chore: check the app stubs against a decompiled app #121

Closed
midas wants to merge 0 commits from review/93-stub-check into dev
Owner

Part of #105, fixes #93.

scripts/check-stubs.sh (+ scripts/StubCheck.java, JDK source launcher) checks a jadx decompile against the stubs: every stub class exists; every member the extension's main code references (from javap -c, exact descriptors) exists public with the same types; stub toString() property names are a subset of the app's; every property name KubusModels looks up appears in a Kubus model toString(). Exit 0/1/2. Test-only stub members are ignored because only referenced members are checked.

Results: Kubus (Tubantia 9.22.0) 93 classes / 26 members OK; Edition (Volkskrant 7.53.1, Trouw 7.52.0) 59 / 41 OK; one stub fix (ListComponent.Properties.toString() printed items=, app has content=; no runtime impact). Negative test on doctored sources reported all three mutations. Every stub names its source app version; update-app-version skill step 2b runs the script; ProfileMenu docs expanded.

🤖 Generated with Claude Code

Part of #105, fixes #93. `scripts/check-stubs.sh` (+ `scripts/StubCheck.java`, JDK source launcher) checks a jadx decompile against the stubs: every stub class exists; every member the extension's main code references (from `javap -c`, exact descriptors) exists public with the same types; stub `toString()` property names are a subset of the app's; every property name KubusModels looks up appears in a Kubus model `toString()`. Exit 0/1/2. Test-only stub members are ignored because only referenced members are checked. Results: Kubus (Tubantia 9.22.0) 93 classes / 26 members OK; Edition (Volkskrant 7.53.1, Trouw 7.52.0) 59 / 41 OK; one stub fix (`ListComponent.Properties.toString()` printed `items=`, app has `content=`; no runtime impact). Negative test on doctored sources reported all three mutations. Every stub names its source app version; update-app-version skill step 2b runs the script; ProfileMenu docs expanded. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chore: check the app stubs against a decompiled app
All checks were successful
CI / Build (pull_request) Successful in 5m57s
ed855ed42c
scripts/check-stubs.sh (+ StubCheck.java, run with the JDK's source launcher) compares the
stubs in stubs/<app> with a jadx decompile: every stub class exists, every constructor, method
and field the extension's main code references (read from its compiled class files with javap,
so test-only stub members never cause a false failure) exists public with the same signature,
and the toString() property names of the stubs and the names the Kubus exporter looks up occur
in the app. Exits 1 with a list on a mismatch. Added to the update-app-version skill, AGENTS.md
and the Gelderlander notes.

Every stub's javadoc names its source app version. ListComponent.Properties.toString() showed
"items" where the app has "content".

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Merged into dev as fa2a944 (merged locally together with other review PRs, so Forgejo didn't mark it merged).

Merged into dev as fa2a944 (merged locally together with other review PRs, so Forgejo didn't mark it merged).
midas closed this pull request 2026-10-17 21:03:34 +02:00
All checks were successful
CI / Build (pull_request) Successful in 5m57s
Required
Details

Pull request closed

Sign in to join this conversation.
No description provided.