Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2156

Instanciation of CollatorFactory in Xsltc fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.6
    • 2.7
    • XSLTC
    • None
    • PatchAvailable

    Description

          • Bug in org.apache.xalan.xsltc.dom.NodeSortRecord ***

      Method initialize() has a provision for instanciating a CollatorFactory object
      by reading property org.apache.xalan.xsltc.COLLATOR_FACTORY. Unfortunatelly the
      instanciation of a given class always fails because the implementation is wrong.

      The following patch (relative to NodeSortRecord.java,v 1.19) fixes the bug:

      22d21
      < import java.text.CollationKey;
      112c111
      < Object candObj = ObjectFactory.findProviderClass(

      > Class candClass = ObjectFactory.findProviderClass(
      113a113
      > Object candObj = candClass.newInstance();
      116a117,118
      > } catch (Exception e) {
      > throw new TransletException(e);

      Attachments

        1. xalan-j_2_6_0-src-patch2.1-bug.zip
          4 kB
          Franz Fackelmann

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fackel@dosco.de Franz Fackelmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: