[kaffe] PATCH: CodeSource

Casey Marshall rsdio at metastatic.org
Fri Jan 23 23:59:01 PST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

The attached patch fixes a number of problems with
java.security.CodeSource when either the location or certificates
field is null. Some basic tests with my PolicyFile reader work with
this patch.

2004-01-23  Casey Marshall <rsdio at metastatic.org>

        * libraries/javalib/java/security/CodeSource.java
        (location): marked final.
        (certificates): marked final.
        (<init>): clone the certificate array.
        (getCertificates): clone the certificate array.
        (equals): handle null components.
        (hashCode): handle null components.
        (toString): handle null components.
        (implies): don't check SocketPermission if the host field of
        `location' is empty.

Cheers.

- -- 
Casey Marshall || rsdio at metastatic.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQFAEiTRgAuWMgRGsWsRAoLLAJ9xx4QB96ks8IpVC1aoUy5jNZdPmgCdGJM6
jbkBC9xxcAkMz8i/oZpCcXM=
=q0QS
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: codesource.patch
Type: text/x-patch
Size: 3256 bytes
Desc: not available
Url : http://pogo.kaffe.org/pipermail/kaffe/attachments/20040123/108dbab6/codesource-0002.bin


More information about the kaffe mailing list