Actions
Bug #2429
closed![Author: Mariusz B](https://www.gravatar.com/avatar/769ebc3a7900060d8bdff2f045ed4dbf?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
compileLibrary used several times ends with "Duplicate definition of global variable"
Start date:
2015-07-31
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Description
When I'm using compileLibrary several times on the same instance of XQueryCompiler compiler I'm getting following error:
net.sf.saxon.trans.XPathException: Duplicate definition of global variable moduleName:someVariableName (see line 12 in module file:/somePath/someModule.xq)
at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:459)
at net.sf.saxon.query.QueryParser.parseVariableDeclaration(QueryParser.java:1621)
at net.sf.saxon.query.QueryParser.parseProlog(QueryParser.java:739)
at net.sf.saxon.query.QueryParser.parseLibraryModule(QueryParser.java:425)
at com.saxonica.expr.ee.StaticQueryContextEE.compileLibrary(StaticQueryContextEE.java:72)
at com.saxonica.expr.ee.StaticQueryContextEE.compileLibrary(StaticQueryContextEE.java:142)
at net.sf.saxon.s9api.XQueryCompiler.compileLibrary(XQueryCompiler.java:474)
It's connected to fact that different modules I'm compliling are using the same imports.
Issue affects not only variables but also functions.
Files
Please register to edit this issue
Actions