Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B305B10E50 for ; Wed, 18 Sep 2013 18:12:47 +0000 (UTC) Received: (qmail 83049 invoked by uid 500); 18 Sep 2013 18:11:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83017 invoked by uid 500); 18 Sep 2013 18:11:52 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 82995 invoked by uid 99); 18 Sep 2013 18:11:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 18:11:51 +0000 Date: Wed, 18 Sep 2013 18:11:51 +0000 (UTC) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DERBY-6349) DaylightSavingTest - java.security.AccessControlException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-6349: ---------------------------------- Attachment: TimeZoneSecurity_diff.txt Attaching a patch for this issue. Wraps TimeZone.setDefault in a priv block. > DaylightSavingTest - java.security.AccessControlException > --------------------------------------------------------- > > Key: DERBY-6349 > URL: https://issues.apache.org/jira/browse/DERBY-6349 > Project: Derby > Issue Type: Bug > Environment: IBM internal prerelease JVM > Reporter: Kathey Marsden > Assignee: Kathey Marsden > Attachments: TimeZoneSecurity_diff.txt > > > Seeing this test failure because of an intentional security change in TimeZone.setDefault(). Therefore need to wrap Timezone.setDefault in a priv block in the test. > 1) DaylightSavingTestjava.security.AccessControlException: > Access denied ("java.util.PropertyPermission" "user.timezone" > "write") > at > java.security.AccessController.throwACE(AccessController.java:10 > 0) > at .(Unknown > Source) > at > java.lang.SecurityManager.checkPermission(SecurityManager.java:5 > 49) > at java.util.TimeZone.hasPermission(TimeZone.java:756) > at java.util.TimeZone.setDefault(TimeZone.java:778) > at > org.apache.derbyTesting.junit.TimeZoneTestSetup.setUp(TimeZoneTe > stSetup.java:59) > at > junit.extensions.TestSetup$1.protect(TestSetup.java:22) > at junit.extensions.TestSetup.run(TestSetup.java:27) > at > org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.ja > va:57) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira