Generating Java Interfaces for Accessing Foreign Objects

Generating Java Interfaces for Accessing Foreign Objects

21 October 2023

Language interoperability (e.g., calling Python methods from Java programs) is a critical challenge in software develop- ment, often leading to code inconsistencies, human errors, and reduced readability. This paper presents a work-in-progress project aimed at addressing this issue by providing a tool that automates the generation of Java interfaces for accessing data and methods written in other languages. Using existing code analysis techniques the tool aims to produce easy to use abstractions for interop, intended to reduce human error and to improve code clarity. Although the tool is not yet finished, it has already shown promising results. Initial evaluations demonstrate its ability to identify language-specific features and automatically generate equiv- alent Java interfaces. This allows developers to efficiently integrate code written in foreign languages into Java projects while maintaining code readability and minimizing errors.


Venue : Conference: MPLR 2023 (co-located with SPLASH 2023) Date: Sun 22 - Fri 27 October 2023 Location: Cascais, Portugal https://2023.splashcon.org/home/mplr-2023

File Name : Generating_Interfaces.pdf