harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Beyer" <ndbe...@apache.org>
Subject Re: [classlib] SimpleTimeZone and SecurityExceptions
Date Sat, 23 Aug 2008 17:24:47 GMT
BTW -
Scroll down on this test result page to see the stack trace of the
failure - http://people.apache.org/~chunrong/harmony-integrity/linux_x86/classlib-test/
I've also tested out implementing option 2, mentioned below, and the
test no longer fails.

On Sat, Aug 23, 2008 at 12:12 PM, Nathan Beyer <ndbeyer@apache.org> wrote:
> There's a recurring failure in the
> 'tests.api.java.security.PermissionCollectionTest' test case that
> seems to have begun when SimpleTimeZone began delegating functionality
> to ICU's code. The exact failure is due to an ICU class, ICUDebug,
> retrieving the property 'java.version' and not having permission to do
> so. There are a few things we can do.
>
> 1. Change the test and add the permission to read 'java.version'
> 2. Wrap the lookup calls to ICU's TimeZone in PrivilegedAction
> 3. Attempt to get ICU to perform the property lookup with code to
> handle the SecurityException
>
> 1 doesn't seem appropriate to me, but I'm not too familiar with the
> test case. 2 seems appropriate, as SimpleTimeZone is part of the
> privileged code base and this will just extend that. 3 may be
> something we should do in addition to 2.
>
> Thoughts, comments?
>
> -Nathan
>

Mime
View raw message