Hi!

Some of the changes by this patch are just code refinements (like making a 
field private or final), others are better error checks (for method params, 
like in FileChannelImpl).

ChangeLog entries:

        * gnu/java/io/Base64InputStream.java (decode): Don't unnecessarily
        use FP arithmetic; use Latin-1 encoding when converting "base64"
        parameter value to bytes.
        * gnu/java/io/Base64InputStream.java (read): Add "Fall through"
        comment in the switch.
        * gnu/java/net/loader/JarURLLoader.java: Add the copyright header.
        * gnu/java/net/loader/JarURLLoader.java (initialized, classPath,
        indexSet): Make the field private.
        * gnu/java/net/protocol/http/HTTPURLConnection.java (requestHeaders):
        Make the field final.
        * gnu/java/nio/FileChannelImpl.java (ch, mode): Likewise.
        * gnu/java/net/protocol/file/Handler.java (openConnection): Check also
        for "localhost" and "~" host names (as in the RI); defend against
        a possible stack overflow in case of a missing ftp handler class.
        * gnu/java/nio/FileChannelImpl.java (FileChannelImpl): Don't
        unnecessarily call isDirectory() if the file is opened for writing
        (since a directory can't be opened for writing).
        * gnu/java/nio/FileChannelImpl.java (open): Throw
        ClosedChannelException and NonReadableChannelException if appropriate.
        * gnu/java/nio/FileChannelImpl.java (map, transferTo, transferFrom,
        lockCheck): Check that "position" plus "size" is not overflowed.
        * gnu/java/nio/FileChannelImpl.java (toString): Output "0" prefix
        before the octal mode value.
        * gnu/xml/dom/DomDocument.java (checkName, checkChar): Don't
        unnecessarily check for characters with codes greater than 0xffff.
        * gnu/xml/dom/ImplementationSource.java (getFeature): Check for
        features.length() is greater than start value.

Attachment: classpath-ivmai-09.diff
Description: Binary data

Reply via email to