Project

Profile

Help

Bug #3974

closed

Configuration options for generating bytecode

Added by Michael Kay over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Byte code generation
Sprint/Milestone:
-
Start date:
2018-10-14
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, 9.9
Fix Committed on Branch:
9.8, 9.9
Fixed in Maintenance Release:
Platforms:

Description

Within BytecodeCandidate.targetExpression(), the decision whether or not to generate bytecode depends on the setting of configuration.isGenerateByteCode(Configuration.XSLT).

This is wrong for a number of reasons:

(a) the code is executed in XQuery as well as XSLT

(b) the decision whether or not bytecode generation is enabled has already been made when injecting a ByteCodeCandidate into the expression tree; there is no need for a further check at this stage

(c) the option is not switched at configuration level anyway, but at the level of an XsltCompiler or XQueryCompiler.

The simplest solution is just to remove this check.

However, I think we may need further thought for the case where a stylesheet is loaded from an export file. At present in this situation I suspect we are not generating bytecode at all. That may be a separate issue.

Please register to edit this issue

Also available in: Atom PDF