You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Scott Cantor (JIRA)" <xe...@xml.apache.org> on 2017/08/06 20:13:00 UTC
[jira] [Updated] (XERCESC-2112) PSVI XSObject getNamespace method
should be const
[ https://issues.apache.org/jira/browse/XERCESC-2112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Cantor updated XERCESC-2112:
----------------------------------
Description:
XSObject::getNamespace is declared non-const, which is wrong, but also triggers method override warnings on Solaris.
I think the subclass that redeclaring that method as pure virtual (and const) is a little fishy, but the compiler understands the situation well enough as long as the method signatures match.
> PSVI XSObject getNamespace method should be const
> -------------------------------------------------
>
> Key: XERCESC-2112
> URL: https://issues.apache.org/jira/browse/XERCESC-2112
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (XML Schema)
> Affects Versions: 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4
> Reporter: Scott Cantor
> Fix For: 3.2.0
>
>
> XSObject::getNamespace is declared non-const, which is wrong, but also triggers method override warnings on Solaris.
> I think the subclass that redeclaring that method as pure virtual (and const) is a little fishy, but the compiler understands the situation well enough as long as the method signatures match.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org