FYI: FilePermission constructor argument checks
Mark Wielaard
mark@klomp.org
Sun Jun 27 23:49:00 GMT 2004
Hi,
The following adds explicit argument checking to the FilePermission
constructor as added to GNU Classpath recently.
2004-06-27 Mark Wielaard <mark@klomp.org>
* java/io/FilePermission.java (usingPerms): Removed.
(actionsString): Made final.
(cachePerms): Renamed to checkPerms.
(checkPerms): Renamed from cachePerms. Call trim() and toLowerCase()
on action String.
(FilePermission): Check arguments, call checkPerms().
(equals): Remove cachePerms() call.
(implies): Likewise.
It fixes some new mauve tests that were recently added.
Committed.
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FilePermission.patch
Type: text/x-patch
Size: 3970 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040627/25692761/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040627/25692761/attachment.sig>
More information about the Java-patches
mailing list