You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/05 21:17:34 UTC

DO NOT REPLY [Bug 4649] New: - Wrong i18n function for resource XSLTErrorResources in Process.java

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4649>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4649

Wrong i18n function for resource XSLTErrorResources in Process.java

           Summary: Wrong i18n function for resource XSLTErrorResources in
                    Process.java
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: org.apache.xalan.processor
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: tom.amiro@sun.com


[tom amiro, this is entered from SunMicrosystem bug 4522787]

When you add some locale resource under org/apache/xalan/res/XSLTError
such as XSLTErrorResouce_zh_CN, and then on solaris8 zh_CN locale,
attempt to run Xalan:

#java org.apache.xalan.xslt.Process

will get error as:

Exception in thread "main" java.lang.ClassCastException:
org.apache.xalan.res.XSLTErrorResources_zh_CN
        at org.apache.xalan.xslt.Process.main(Process.java:209)

This seems to reflect a problem affecting the l10n of Xalan.

 Suggested fix:
In Process.java, line 208,

Maybe the type convertion should be changed in the "XSLTErrorResources" to
"XResourceBundleBase", and the local var 'resbundle' should
change its type, and the function printArgOptions's parameter type should 
change accordingly.