This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: merge File.toURI() from Classpath


Bryce McKinlay wrote:
> David Daney wrote:
> 
> 
>>>We can't add constructors to InternalError, as that would violate the spec.
>>>
>>>   
>>>
>>
>>Which spec. would that be?  I am unfamiliar with it.
>>
> 
> 
> The Java 2(TM) Platform API specification[1]
> 
> [1] http://java.sun.com/j2se/1.4.2/docs/api/
> 

Does it say somewhere that we cannot add public methods while
maintaining compatibility with Sun's implementation?

It doesn't seem like a good idea to use an unsuitable exception type
just because its API has a slightly more elegant constructor.

David Daney.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]