Backend
MockingBird: Context-aware Repository-level Code Translation with Isolated Validation
arXiv cs.SE0 views
arXiv:2511.21878v3 Announce Type: replace Abstract: Despite advances in repository-level code translation, automated type resolution across differing type systems and translation validation (functional-equivalence checking) remain challenging. This paper proposes MockingBird, combining context-aware type resolution with mock-based isolated validation. MockingBird retrieves API documentation and contextual code information per source-language type, prompting an LLM to resolve precise cross-language type mappings, reducing the manual effort of existing approaches. Using this automatically constructed type map, MockingBird employs custom serialization/deserialization to generate equivalent target-language mock objects, validating each translation unit in isolation without test translation, eliminating test-overfitting risks and translation challenges. On 10 Java-to-Python tasks from the AlphaTrans benchmark, MockingBird improves functional equivalence from the state-of-the-art 25.14% to 43.10%, with no manual type-mapping correction needed. A 700-fragment study shows MockingBird achieves 0 false positives and 0.9% false negatives, substantially outperforming GraalVM (2.4% false positives, 7.6% false negatives) and MatchFixAgent (11.0% combined mislabel rate). The pipeline is also LLM-agnostic, maintaining these gains with both DeepSeekCoder-33B and the smaller Devstral-24B.
Source:https://arxiv.org/abs/2511.21878PreviousStack Trace-Based Crash Deduplication with Transformer AdaptationNextLearning from Repair Experience: Self-Evolving Agents for Automated Vulnerability Repair
Related posts
The Building Is a System: What Software Engineers Can Learn from Construction Site Failures
0dev.to

Part 4: When the Screen Changes Silently: Live Regions, Headings and Focus in Compose
0dev.to
FlatCake: Why Tiered KV Cache Storage Is Holding LLM Serving Back
0dev.to
Why Scrum is Not a Silver Bullet: 5 Structural Drawbacks and Fixes
0dev.to
Agentic Frameworks Compared: LangGraph, CrewAI & More
0dev.to
The Real-World Pain
0dev.to