Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2318

XSLTC generates bytecode that exceeds JVM limitation on method length for stylesheet with many different QNames in path expressions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.7.1
    • XSLTC
    • None
    • PatchAvailable
    • fp3

    Description

      If a stylesheet uses path expressions with many different local names (and possibly many different namespaces), XSLTC might try to create a translet that exceeds the JVM Specification's 64KB limit on the length of a method. Depending on the version of Xalan-Java involved, any of the following messages might be seen:

      Could not load the translet class 'name'
      Branch target offset too large for short
      A method in the translet exceeds the Java Virtual Machine limitation on the length of a method of 64 kilobytes.

      Attachments

        1. j2318.out
          0.1 kB
          Henry Zongaro
        2. j2318.xml
          0.0 kB
          Henry Zongaro
        3. j2318.xsl
          242 kB
          Henry Zongaro
        4. patch.j2318.txt
          14 kB
          Henry Zongaro

        Activity

          People

            zongaro@ca.ibm.com Henry Zongaro
            zongaro@ca.ibm.com Henry Zongaro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: