Project

Profile

Help

Bug #2429

closed

compileLibrary used several times ends with "Duplicate definition of global variable"

Added by Mariusz B almost 9 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
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

Also available in: Atom PDF