harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Qiu" <sean.xx....@gmail.com>
Subject Re: [classlib][sql] java.sql.DriverManager.getDrivers() lack permission of reading System prpperty "jdbc.drivers" will cause j.l.ExceptionInInitializerError
Date Sat, 30 Jun 2007 08:01:42 GMT
Then i will supply a patch for it

2007/6/29, Tim Ellison <t.p.ellison@gmail.com>:
>
> 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
> >
>



-- 
Sean Qiu

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message