DocumentCode
2696253
Title
Library interoperability via inheritance
Author
Potter, John ; Shelswell, Ryan ; Joyner, Ian
Author_Institution
Microsoft Res. Inst., Macquarie Univ., North Ryde, NSW, Australia
fYear
1998
fDate
3-7 Aug 1998
Firstpage
71
Lastpage
83
Abstract
To allow Eiffel programs to run on the Java Virtual Machine we have adopted a translation scheme which addresses issues of library interoperability for the two languages. We describe an approach which permits Eiffel code to inherit Java code directly rather than adopt a more conventional external call mechanism. With this approach we can choose to access the Java code as descendants or as clients. In effect we are able to make the Java classes appear directly as Eiffel classes. In particular we can program applets in Eiffel just as a Java programmer does, inheriting directly from the applet class provided by the system and redefining appropriate routines. In addition, where Eiffel library classes are implemented with external calls provided by the Eiffel run-time, our translator is able to mix its translated code with Java implementations of the run-time functions. This ability to inherit Java code in the Eiffel source, and to use inherited versions of Eiffel run-time code on the Java side allows us to utilise both Eiffel and Java libraries in JVM-targetted Eiffel programs
Keywords
inheritance; object-oriented languages; object-oriented programming; software libraries; software tools; Eiffel; Java; Java Virtual Machine; applet class; external call mechanism; inheritance; library interoperability; program translation; run-time code; Component architectures; Java; Programming profession; Runtime library; Virtual machining;
fLanguage
English
Publisher
ieee
Conference_Titel
Technology of Object-Oriented Languages, 1998. TOOLS 26. Proceedings
Conference_Location
Santa Barbara, CA
Print_ISBN
0-8186-8482-8
Type
conf
DOI
10.1109/TOOLS.1998.711004
Filename
711004
Link To Document