Article View: comp.lang.java
Article #57Re: Fundamental flaw in Java library distribution scheme
From: Pierre Baillargeon
Date: Wed, 29 Nov 1995 14:02
Date: Wed, 29 Nov 1995 14:02
30 lines
2124 bytes
2124 bytes
: Impact : ------ : Fixing this problem would require doing overload resolution at load time, : which in addition to being slower, is not possible given the information : accessible in the (supposedly stable) Java binary distribution standard. : The exact static types of all actual arguments are required, which are : not available at runtime (as opposed to the formal signature of the method : invoked, which is what Java currently keeps). This means that there is : simply not enough information to solve the problem in the distribution : format for Java. Adding full actual argument type information to the : binary form would allow runtime resolution to be done, but this would : have a real size (and download delay) impact, since there are far more : calls than there are method signatures called. Of course the fast and easy way to correct this is to disallow automatic conversion of arguments (always say what you mean) and disallow covariance of returned type (always do what you say). Two fixes that would make the language cleaner IMHO. Also, let's not confuse the Java language and the Java environment. And anyway, anyone who has ever updated softwares know that even if you comply with interface, nothing ganrantee that the actual implementation code is correct and compatible with all unspecified assumption of the calling code. Nothing beats testing. : While it is marginally ok for decorative applets to "usually" behave : correctly, this is an unacceptable property if Java is to be used for : mission critical software. It looks like some rethinking will have : to be done.
Technical Details
Message-ID:
<49hp5f$j5f@web.cae.ca>Path:
arc1-ca.pugleaf.net!zorglub.cae.ca!pierrebaReferences:
<30AB7FA3.72F8@longview.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!zorglub.cae.ca!pierreba From: pierreba@zorglub.cae.ca (Pierre Baillargeon) Newsgroups: comp.lang.java,comp.object,comp.lang.c++ Subject: Re: Fundamental flaw in Java library distribution scheme Followup-To: comp.lang.java,comp.object,comp.lang.c++ Date: 29 Nov 1995 14:02:23 GMT Organization: CAE Electronics, Montreal Message-ID: <49hp5f$j5f@web.cae.ca> References: <30AB7FA3.72F8@longview.com> NNTP-Posting-Host: zorglub.cae.ca X-Newsreader: TIN [version 1.2 PL2]