[ http://issues.apache.org/jira/browse/XALANJ-1402?page=comments#action_12356542 ]
Brian Minchau commented on XALANJ-1402: --------------------------------------- Igor, please verify that this issue is fixed in 2.7.0. Ilene put a comment back in Feb 2003 that some fixes about the patch refered to went into bugzilla #16675, which became XALANJ-411 in the transfer to JIRA. XALANJ-411 is resolved. I think this one is an issue anymore either. Please confirm. Thanks, Brian Minchau > Incorrect usage of context ClassLoader for static field initialization > ---------------------------------------------------------------------- > > Key: XALANJ-1402 > URL: http://issues.apache.org/jira/browse/XALANJ-1402 > Project: XalanJ2 > Type: Bug > Components: Xalan > Versions: 2.5 > Environment: Operating System: All > Platform: All > Reporter: Igor Malinin > Assignee: Xalan Developers Mailing List > Priority: Critical > Attachments: patch-static.txt > > Several classes read resources through thread context ClassLoader. When it is > right thing for factories, it it is definitely not right for static field > initialization. Due to this it is problematic for me to use Xalan as Eclipse > plugin. This might be issue in other environments with many ClassLoaders too. > These two classes should not use context Classloader: > org.apache.xalan.serialize.Encodings > org.apache.xalan.templates.OutputProperties > Instead they should simply read properties from their OWN Classloader as > org.apache.xalan.serialize.CharInfo does: > ClassLoader cl = CharInfo.class.getClassLoader(); > There are one more class: > org.apache.xalan.processor.TransformerFactoryImpl > It does "System.setProperties(systemProps)" in it's static initialization! > Actually it does'nt set anything what could be needed except sax-driver (which > should be defined in META-INF/services by default!), and I think it is > something > from legacy code and must be removed now (to remove possible side effects)... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
