Hello Boris, I'm not an expert in security. I even couldn't keep a pin of my credit card secured from my wife. :-)
Anyway, few weeks ago I faced a problem with tests which failed due to java.policy file forgotten by a release engineer in his home directory. We decided that changing the java.security.policy property and invoking refresh() is a hacker style, so we had to write our security manager implementation. I have just checked that the guy who actually made the fix implemented the property hack. That is why I vote for the second choice. It is much simpler and we can migrate to the first method later if needed. Does it make sense? With best regards, Alexei Fedotov, Intel Middleware Products Division >-----Original Message----- >From: Boris Kuznetsov [mailto:[EMAIL PROTECTED] >Sent: Wednesday, October 04, 2006 1:24 PM >To: harmony-dev@incubator.apache.org >Subject: Re: [j9][testing] some classlib unit tests fail > >The tests mentioned in HARMONY-1674 ><http://issues.apache.org/jira/browse/HARMONY-1674> depend on default >system policy file. >But if user policy file exists than, according to the spec, it is >added to system policy. It leads to the tests failures. > >There are two options: >1. Rewrite the tests. >2. Use '-Djava.security.policy' to specify policy file and ignore all >others: >-Djava.security.policy==${java.home}/lib/security/java.policy > >I suggest the second one. >Comments? > >On 10/4/06, Elena Semukhina <[EMAIL PROTECTED]> wrote: >> Hello, all, >> >> AFAIK, "ant test" should give 100% pass rate on j9 but I have 5 failures >> which seem to be dependent on environment. >> I've uploaded the results at >> >http://harmonytest.org/testapp.do?method=showrun&id=9&perPage=100&page= 1&na >me=&result=0&jira=0 >> >> There are also two JIRA issues detailing this: >> HARMONY-1664<http://issues.apache.org/jira/browse/HARMONY-1664> and >> HARMONY-1674 <http://issues.apache.org/jira/browse/HARMONY-1664> >> >> Can anyone help in analyzing the problem? >> >> -- >> Thanks, >> Elena >> >> > > >-- >Best regards, >Boris Kuznetsov >Intel Middleware Products Division > >--------------------------------------------------------------------- >Terms of use : http://incubator.apache.org/harmony/mailing.html >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]