You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/02/04 18:55:58 UTC

DO NOT REPLY [Bug 16769] New: - XalanEXSLTFunctionPadding::clone calls wrong constructor

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16769>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16769

XalanEXSLTFunctionPadding::clone calls wrong constructor

           Summary: XalanEXSLTFunctionPadding::clone calls wrong constructor
           Product: XalanC
           Version: 1.4.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XalanC
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: coreyt@informativeresearch.com


[This applies to the current cvs version]

The XalanEXSLTFunctionPadding::clone method calls the copy constructor to 
create the object that is returned by the method.  The object added to the 
function table uses the special constructor which does not initialize the 
member variable m_space.  So when clone gets called and uses the copy 
constructor, m_space is also uninitialized in the new object.

The clone method should instead call the default constructor which initializes 
m_space to the correct value.