United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6175602 Compilation of StarOffice wordml XSLT filter via XSLTC throws exception
JDK-6175602 : Compilation of StarOffice wordml XSLT filter via XSLTC throws exception

Details
Type:
Bug
Submit Date:
2004-10-07
Status:
Closed
Updated Date:
2012-04-25
Project Name:
JDK
Resolved Date:
2007-03-30
Component:
xml
OS:
windows_xp
Sub-Component:
javax.xml.transform
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
1.4.0 (1.4)

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

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

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
                                     
2004-10-07
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.
                                     
2006-09-12
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.
                                     
2007-03-30



Hardware and Software, Engineered to Work Together