Project

Profile

Help

Bug #2493

closed

FastStringBuffer.getCharArray()

Added by Michael Kay about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Internals
Sprint/Milestone:
Start date:
2015-11-07
Due date:
% Done:

100%

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

Description

The method FastStringBuffer.getCharArray() is incorrect; if the number of characters used in the buffer is less than the size of the buffer, it returns an array the length of the original buffer.

I have not determined any adverse consequences of this bug in 9.6, but new use of this method exposes the bug on the 9.7 branch.

Actions #1

Updated by Michael Kay about 9 years ago

  • Project changed from 4 to Saxon
  • Category set to Internals
  • Status changed from New to Resolved

A patch has been committed on the 9.6 and 9.7 branches. In 9.7 I have renamed the method toCharArray() for consistency with java.lang.String.

Actions #2

Updated by O'Neil Delpratt about 9 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.6.0.8

Bug fix applied in the Saxon 9.6.0.8 maintenance release

Actions #3

Updated by O'Neil Delpratt about 9 years ago

  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.8 added
Actions #4

Updated by O'Neil Delpratt about 9 years ago

  • Sprint/Milestone set to 9.6.0.8

Please register to edit this issue

Also available in: Atom PDF