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


David Daney wrote:

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


Yes, this is one of the "license terms" of the Java specification. Although we do not (can not) meet the other conditions of this license, the goal of the classpath project is to provide a class library that is compatible with the Java specification. Adding new public APIs to the core classes would mean that classpath is no longer compatible.

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


I do not believe that RuntimeException is unsuitable. It seems a better match than InternalError.

Regards

Bryce

[1] http://java.sun.com/j2se/1.4.2/docs/relnotes/license.html


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