[ https://issues.apache.org/jira/browse/XALANC-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463861#comment-13463861 ]
Martin Elzen commented on XALANC-733: ------------------------------------- Okay, that's interesting, but it's also not quite what I was trying to get at. My real question wasn't meant to be "does it compile?", but "does it link?". And it doesn't ... link, that is, on AIX. Either a XalanLocator.cpp file needs to be added to the Xalan SVN-tree in the appropriate place with contents something like as I specified already... Or a static inline member function needs to be defined, eg something like (note: I haven't tried to compile this yet, tomorrow maybe...) inline static const XalanDOMChar& nullChar() { const static XalanDOMChar sm_dczero = 0; return sm_dczero; } and then the other places that used &s_dczero would need to use something like "theAlternateId = &nullChar()".... assuming this code and the previous fn definition actually compiles. See also: http://stackoverflow.com/questions/3025997/c-defining-static-const-integer-members-in-class-definition > Ensure that XalanLocator::getSystemId() and getPublicId() do not return NULL > ---------------------------------------------------------------------------- > > Key: XALANC-733 > URL: https://issues.apache.org/jira/browse/XALANC-733 > Project: XalanC > Issue Type: Bug > Components: XalanC, XPathC > Affects Versions: 1.11 > Reporter: Steven J. Hathaway > Assignee: Steven J. Hathaway > Attachments: XalanLocator-3.patch, XalanLocator.patch, > XalanLocator.patch2 > > > The recommended patch to "xalanc/PlatformSupport/XalanLocator.hpp" > ensures that getSystemId() and getPublicId() do not return NULL pointers. > XalanC source files that can benefit from the patch include: > xalanc/PlatformSupport/ProblemListenerBase.cpp > xalanc/PlatformSupport/XSLException.cpp > xalanc/XPath/XPathExecutionContextDefault.cpp > The patch will be submitted shortly. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org For additional commands, e-mail: dev-h...@xalan.apache.org