Project

Profile

Help

Bug #2466

closed

NoSuchMethodException during bytecode generation: CodepointCollator.compareCS

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Byte code generation
Sprint/Milestone:
Start date:
2015-10-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

During bytecode generation of an expression of the form S1<S2, where S1 and S2 are statically known to be single strings, the code generator attempts to generate a call on a static method CodepointCollator.compareCS(CharSequence, CharSequence). But this method is not static, so it fails with a NoSuchMethodException.

Also, unhelpfully, the exception does not include details of the method that was being called.

Reported by Thorsten Rohm in private email.

Actions #1

Updated by Michael Kay about 9 years ago

  • Status changed from In Progress to Resolved

Fixed this by the simple expedient of making the method static. (Note the patch needs to convert other invocations of the method to static invocations)

Also improved the diagnostics.

Patch committed to Subversion on the 9.6 and 9.7 branches.

Actions #2

Updated by O'Neil Delpratt almost 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 almost 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 almost 9 years ago

  • Sprint/Milestone set to 9.6.0.8

Please register to edit this issue

Also available in: Atom PDF