Hi, guys

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 ?

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

--
Sean Qiu

Reply via email to