JDK-6175602 : Compilation of StarOffice wordml XSLT filter via XSLTC throws exception
  • Type: Bug
  • Component: xml
  • Sub-Component: javax.xml.transform
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-10-07
  • Updated: 2012-04-25
  • Resolved: 2007-03-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6 JDK 7
1.4.0 1.4Fixed 6u18Fixed 7Fixed
Description
Attached is the stylesheet for Word2003 XML (wordml), which throws an exception, when used for transformation with Java 5 (XSLTC).

The compiler warning seems not correct to me and the error message
'ICONST can be used only for value between -1 and 5: 17' is not user friendly at all. There is no chance to write a work-around via XSLT by this message.

Works with Xalan 2.6.0.
###@###.### 10/7/04 17:45 GMT

Comments
EVALUATION Problem is fixed by using a PUSH rather than an ICONST instruction. Patch is available in JAXP 1.4 downloadable from Java.net. CR is also being proposed for JDK 6 update 2.
30-03-2007

EVALUATION bug is being re-opened per user comment: Comment added by (###@###.###) : Please REOPEN THIS BUG - it is *not* a duplicate of 5056688. It is identical to this bug: http://issues.apache.org/jira/browse/XALANJ-2160 5056688 only affects template elements that are too large to be compiled into one method. This bug affects absolute path expressions that have one step and a numeric predicate.
12-09-2006

EVALUATION this is being closed as a duplicate of 5056688. compilation of large stylesheets run into JVM size limits. solution is to: - bundle interpretive transformer in addition to compiled transformer - re-arch stylesheet compiler to build bytecodes differently all of these solutions are a major release effort. ###@###.### 2005-05-25 22:39:45 GMT
07-10-2004