zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #02196
[Merge] lp:~matthias-brantner/zorba/bug-fixing into lp:zorba
Matthias Brantner has proposed merging lp:~matthias-brantner/zorba/bug-fixing into lp:zorba.
Requested reviews:
Matthias Brantner (matthias-brantner)
William Candillon (wcandillon)
Related bugs:
Bug #867133 in Zorba: "SWIG PHP build failure on Mac OSX"
https://bugs.launchpad.net/zorba/+bug/867133
For more details, see:
https://code.launchpad.net/~matthias-brantner/zorba/bug-fixing/+merge/83677
- Do not raise warnings for unknown annotations in unknown namespaces
- Improved error message for wrong annotations
--
https://code.launchpad.net/~matthias-brantner/zorba/bug-fixing/+merge/83677
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'ChangeLog'
--- ChangeLog 2011-11-23 22:25:05 +0000
+++ ChangeLog 2011-11-28 19:43:26 +0000
@@ -38,6 +38,7 @@
* Fixed bug #3290122 (ZDST0003 needs collection name)
* Fixed bug #3406272 (merging of adjacent text nodes must be done after all
updates have been applied).
+ * Don't raise warnings for unknown annotations.
* Fixed bug #3409344 (during detach, if the node being detached is the root of
its tree, it should be detached from the tree as well; otherwise memory
corruption will occur)
=== modified file 'src/compiler/translator/translator.cpp'
--- src/compiler/translator/translator.cpp 2011-11-24 10:18:51 +0000
+++ src/compiler/translator/translator.cpp 2011-11-28 19:43:26 +0000
@@ -3811,24 +3811,10 @@
if (AnnotationInternal::lookup(lExpandedQName) == AnnotationInternal::zann_end)
{
RAISE_ERROR(err::XQST0045, loc,
- ERROR_PARAMS( "%" + (lExpandedQName->getPrefix().empty() ?
- "\'" + lExpandedQName->getNamespace() + "\'"
- : lExpandedQName->getPrefix())
- + ":" + lExpandedQName->getLocalName()));
+ ERROR_PARAMS( "%" + ("\"" + lExpandedQName->getNamespace() + "\""
+ + ":" + lExpandedQName->getLocalName())));
}
}
- else
- {
- // annotation in unknown namespace -- generate a warning
- theCCB->theXQueryDiagnostics->add_warning(
- NEW_XQUERY_WARNING(
- zwarn::ZWST0002_UNKNOWN_ANNOTATION,
- WARN_PARAMS( "%" + (lExpandedQName->getPrefix().empty() ?
- "\'" + lExpandedQName->getNamespace() + "\'"
- : lExpandedQName->getPrefix())
- + ":" + lExpandedQName->getLocalName()),
- WARN_LOC(loc)));
- }
std::vector<rchandle<const_expr> > lLiterals;
Follow ups