classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: japi and public references to non-public types


From: Stuart Ballard
Subject: Re: japi and public references to non-public types
Date: Tue, 4 Oct 2005 20:01:00 -0400

(hope you don't mind me ccing the list)

On 10/4/05, David Holmes <address@hidden> wrote:
> If a public or protected member utilises a type that it not public or
> protected then that is a bug in the API. Unfortunately Sun has not responded
> to these bugs - eg GridBagLayoutInfo - in the past six years.

Sun unresponsive? Never! Say it ain't so!

> Other than treat these inaccessible types as objects, no program could
> effectively make any use of them.
>
> That doesn't really help with your predicament however.

I think it does... it's a datapoint in favor of excluding them from
the japi file which is the way I was leaning already.

The one I'm most nervous about excluding (although I don't know if it
ever actually comes up) is inaccessible thrown exceptions. You can
always catch those by just catching them as Exception, so the method
is usable. On the other hand it would guarantee an API error because
the Free implementation would be completely unable to provide the same
throws clause.

Perhaps Japize should go and find the nearest public superclass of the
inaccessible exception type and pretend that that was what appeared in
the throws clause...

Stuart.
--
http://sab39.dev.netreach.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]