harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [classlib][sql] java.sql.DriverManager.getDrivers() lack permission of reading System prpperty "jdbc.drivers" will cause j.l.ExceptionInInitializerError
Date Fri, 29 Jun 2007 13:11:10 GMT
Sean Qiu wrote:
> When i am running derby's junit test.I find a error caused by lacking
> of pemission of read system "jdbc.drivers" property while initialize
> DriverManager class.
> 
> Initialize DriverManager class will invoke the method of
> DriverManager.loadInitialDrivers(). This static method will read
> system property of "jdbc.drivers", this will throw
> java.security.AccessControlException cause the
> java.lang.ExceptionInInitializerError. I have reprot a jira in
> HARMONY-4303 [1].
> 
> Shall we call AccessController.doPrivileged to grant it the read
> permision ?

Yes.

Regards,
Tim

> [1] https://issues.apache.org/jira/browse/HARMONY-4303
> 

Mime
View raw message