Repository navigation
Rewrite JDK API calls in dependencies of the staged jar - #6366
Conversation
The bytecode-compliance goal applies the String regex and wrapper rewrites only to the module's own classes; dependency jars were merged into the jar-with-dependencies unchanged. A library calling String.replaceAll thus reached the iOS translator as virtual_java_lang_String_replaceAll, which vm/JavaAPI never defines: a green build and an Xcode compile error. AppBuilder now applies the same rules to every class of the staged jar, including a reused one. The rewrite is idempotent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ant's zip task merges the staged jar and keeps duplicate entries (META-INF/MANIFEST.MF, orm-enhanced-dependencies.list), which java.util.zip.ZipOutputStream refuses. Copy every entry in physical order with Ant's ZipOutputStream instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Developer Guide build artifacts are available for download from this workflow run: Developer Guide quality checks: |
Cloudflare Preview
|
|
Compared 380 screenshots: 380 matched. |
|
Compared 288 screenshots: 288 matched. Native Android coverage
✅ Native Android screenshot tests passed. Native Android coverage
Benchmark ResultsDetailed Performance Metrics
|
Native fidelity (Android, Material 3)54 pairs compared -- median 95.6%, worst 91.3% ( Distribution --
Geometry vs native (bbox offset / size ratio / center offset / corner radius) -- gated separately from the visual score
Side-by-side comparisons (worst first)
|












































































































Fixes #6363.
The `bytecode-compliance` goal applies the String regex and wrapper rewrites only to the module's own `target/classes`. Dependency jars are indexed but never rewritten, and were merged into the `jar-with-dependencies` unchanged. A dependency calling `String.replaceAll` therefore reached the iOS translator as a call to `virtual_java_lang_String_replaceAll...`, which vm/JavaAPI never defines: a green build and an Xcode compile error.
Reproduced on 7.0.285 with a fresh archetype project and a one-class jar dependency calling `replaceAll`; the generated `d_Sq.m` called the undefined function.
Verified: `BytecodeComplianceTest` (new `stagedJarDependencyRegexCallsAreRewritten`) passes, and the repro built with this plugin logs `Rewrote 1 JDK API callsite(s) in dependencies` and its Xcode source calls `StringRegex_replaceAll` only. SpotBugs on build-engine: 0.
🤖 Generated with Claude Code