This is the mail archive of the mauve-discuss@sourceware.org mailing list for the Mauve 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]

SecurityException throwpoint audit


Hi all,

I've been trying to work out how to test that permissions are checked
at every point they ought to be.  There's a table of every such point
here:

  http://java.sun.com/j2se/1.4.2/docs/guide/security/permissions.html#PermsAndMethods

Some of these already have tests, but most probably do not.  Before I
start creating tests I'm thinking that we need some way to correlate
mauve tests with the throwpoints on this (and future) lists.

How would people feel if I numbered the throwpoints on the above list
and noted them in their corresponding tests in some easily parsable
form (probably in comments like Tags are already).  That way whether a
throwpoint is tested (and the location of the test) can be found with
a simple grep.

For simplicity I'd probably number the 1.4.2 list from 1-whatever.
Checks added in 1.5 can be added at the end of the list.

It would be convenient if we made a version of the above list
annotated with the throwpoint numbers, but obviously such a thing
could not be distributed.  It should be possible to write a script
that would download and annotate the list for local use.

Does this sound reasonable?

Cheers,
Gary


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