Skip to main content

Extend API in terms of interfaces

1 reply [Last post]
cowwoc
Offline
Joined: 2003-08-24
Points: 0

Hi,

I'm going to quote what one of the authors of JDistro wrote here: http://www.onjava.com/pub/a/onjava/2004/11/24/jdistro.html

He says:

Desnoix: Java has many flaws, but my main concern is about the APIs because it is what our software is built on. Most APIs use abstract classes (or even worse, concrete ones) instead of interfaces, preventing alternative implementations. And they can not be modified without breaking compatibility.

I believe he has a very good point. It is important to note that we can rewrite the current API in terms of interfaces without breaking backwards compatibility. The question is, will Sun consider this RFE?

Gili

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kcpeppe
Offline
Joined: 2003-06-15
Points: 0

>
> I believe he has a very good point. It is
> is important to note that we can rewrite the current
> API in terms of interfaces without breaking backwards
> compatibility. The question is, will Sun consider
> this RFE?

I'm not sure I'd like to see this at the class level except for a (loaded word :) key ones. It is strange that the power of interfaces that has worked so well for every other major component (JMS, JDBC....) has been ignored in the world of user interfaces and a few other places?