Project

Profile

Help

Bug #4673

closed

With bytecode enabled, X[$i] with $i=-4294967295 is treated as X[1]

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Byte code generation
Sprint/Milestone:
-
Start date:
2020-08-09
Due date:
% Done:

100%

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

Description

With bytecode enabled, X[$i] with $i=-4294967295 is treated as X[1].

The new QT3 test case

-s:prod-Predicate -t:filter-limits-004

therefore fails.

Actions #1

Updated by Michael Kay over 3 years ago

  • Status changed from New to Resolved
  • Applies to branch 10, trunk added
  • Fix Committed on Branch 10, trunk added

Fixed SubscriptExpressionCompiler to generate a call on NumericValue.asSubscript() rather than a comparison with Integer.MAX_VALUE.

Actions #2

Updated by Michael Kay over 3 years ago

  • Status changed from Resolved to In Progress

filter-limits-005 still fails; this is using a slightly different path through SubscriptExpressionCompiler which needs to be changed in the same way.

Actions #3

Updated by Michael Kay over 3 years ago

  • Status changed from In Progress to Resolved

Fixed as suggested.

Actions #4

Updated by O'Neil Delpratt over 3 years ago

  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 10.2 added

Bug fix applied in the Saxon 10.2 maintenance release.

Actions #5

Updated by O'Neil Delpratt over 3 years ago

  • Status changed from Resolved to Closed

Please register to edit this issue

Also available in: Atom PDF