Project

Profile

Help

Support #5209

closed

Should net.sf.saxon.expr.Expression.extraProperties be also copied when the net.sf.saxon.expr.Expression.copy(RebindingMap) method is invoked?

Added by Radu Coravu over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2022-01-18
Due date:
% Done:

0%

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

Description

Tihis just a remark, it's not something we need. We've kind of been patching Saxon a little bit for our debugger and are using Expression.extraProperties to keep a reference from the expression to the StyleElement from which it was generated. I know it's not the reason why Expression.extraProperties but we found it interesting for this particular need we had to pair the Expression received on the trace listener with the StyleElement from which it originates. Looking at implementations like this "net.sf.saxon.expr.LetExpression.copy(RebindingMap)" shouldn't the copy of any expression by default also copy the extra properties?

For now I will make changes to "net.sf.saxon.expr.instruct.TraceExpression.copy(RebindingMap)" and copy the extra property we are interested in from the original to the copy.

Please register to edit this issue

Also available in: Atom PDF