You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "David Brandow (JIRA)" <ax...@ws.apache.org> on 2005/07/14 22:39:10 UTC

[jira] Created: (AXIS-2122) WSDL2Java - i18n - JavaWriter.java

WSDL2Java - i18n - JavaWriter.java
----------------------------------

         Key: AXIS-2122
         URL: http://issues.apache.org/jira/browse/AXIS-2122
     Project: Apache Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.1, 1.2RC1, 1.2RC2, 1.2, 1.2RC3, 1.2.1    
 Environment: All
    Reporter: David Brandow


org.apache.axis.wsdl.toJava.JavaWriter's getPrintWriter() implementation differs from that of org.apache.axis.wsdl.toJava.JavaDeployWriter in that it doesn't write out the code in UTF-8. As a result, if you have i18n characters in your WSDL, the Java code that gets generated is incorrect and won't compile. If you change JavaWriter's getPrintWriter() implementation to match that of JavaDeployWriter, the generated java is correct and compilable (assuming you use javac -encoding UTF-8).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2122) WSDL2Java - i18n - JavaWriter.java

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2122?page=comments#action_12316302 ] 

Davanum Srinivas commented on AXIS-2122:
----------------------------------------

David,

do you have a patch, that i can apply for 1.2.1?

thanks,
dims

> WSDL2Java - i18n - JavaWriter.java
> ----------------------------------
>
>          Key: AXIS-2122
>          URL: http://issues.apache.org/jira/browse/AXIS-2122
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.1, 1.2RC1, 1.2RC2, 1.2RC3, 1.2, 1.2.1
>  Environment: All
>     Reporter: David Brandow

>
> org.apache.axis.wsdl.toJava.JavaWriter's getPrintWriter() implementation differs from that of org.apache.axis.wsdl.toJava.JavaDeployWriter in that it doesn't write out the code in UTF-8. As a result, if you have i18n characters in your WSDL, the Java code that gets generated is incorrect and won't compile. If you change JavaWriter's getPrintWriter() implementation to match that of JavaDeployWriter, the generated java is correct and compilable (assuming you use javac -encoding UTF-8).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-2122) WSDL2Java - i18n - JavaWriter.java

Posted by "David Brandow (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2122?page=all ]

David Brandow updated AXIS-2122:
--------------------------------

    Attachment: JavaWriter.java

Proposed fix (very simple)

> WSDL2Java - i18n - JavaWriter.java
> ----------------------------------
>
>          Key: AXIS-2122
>          URL: http://issues.apache.org/jira/browse/AXIS-2122
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.1, 1.2RC1, 1.2RC2, 1.2RC3, 1.2, 1.2.1
>  Environment: All
>     Reporter: David Brandow
>  Attachments: JavaWriter.java
>
> org.apache.axis.wsdl.toJava.JavaWriter's getPrintWriter() implementation differs from that of org.apache.axis.wsdl.toJava.JavaDeployWriter in that it doesn't write out the code in UTF-8. As a result, if you have i18n characters in your WSDL, the Java code that gets generated is incorrect and won't compile. If you change JavaWriter's getPrintWriter() implementation to match that of JavaDeployWriter, the generated java is correct and compilable (assuming you use javac -encoding UTF-8).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2122) WSDL2Java - i18n - JavaWriter.java

Posted by "David Brandow (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2122?page=comments#action_12316347 ] 

David Brandow commented on AXIS-2122:
-------------------------------------

I attached a proposed fix, which is based on the implementation of JavaDeployWriter's getPrintWriter() method.

> WSDL2Java - i18n - JavaWriter.java
> ----------------------------------
>
>          Key: AXIS-2122
>          URL: http://issues.apache.org/jira/browse/AXIS-2122
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.1, 1.2RC1, 1.2RC2, 1.2RC3, 1.2, 1.2.1
>  Environment: All
>     Reporter: David Brandow
>  Attachments: JavaWriter.java
>
> org.apache.axis.wsdl.toJava.JavaWriter's getPrintWriter() implementation differs from that of org.apache.axis.wsdl.toJava.JavaDeployWriter in that it doesn't write out the code in UTF-8. As a result, if you have i18n characters in your WSDL, the Java code that gets generated is incorrect and won't compile. If you change JavaWriter's getPrintWriter() implementation to match that of JavaDeployWriter, the generated java is correct and compilable (assuming you use javac -encoding UTF-8).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-2122) WSDL2Java - i18n - JavaWriter.java

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2122?page=all ]
     
Davanum Srinivas resolved AXIS-2122:
------------------------------------

    Resolution: Fixed

fixed. thx.

-- dims

> WSDL2Java - i18n - JavaWriter.java
> ----------------------------------
>
>          Key: AXIS-2122
>          URL: http://issues.apache.org/jira/browse/AXIS-2122
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.1, 1.2RC1, 1.2RC2, 1.2RC3, 1.2, 1.2.1
>  Environment: All
>     Reporter: David Brandow
>  Attachments: JavaWriter.java
>
> org.apache.axis.wsdl.toJava.JavaWriter's getPrintWriter() implementation differs from that of org.apache.axis.wsdl.toJava.JavaDeployWriter in that it doesn't write out the code in UTF-8. As a result, if you have i18n characters in your WSDL, the Java code that gets generated is incorrect and won't compile. If you change JavaWriter's getPrintWriter() implementation to match that of JavaDeployWriter, the generated java is correct and compilable (assuming you use javac -encoding UTF-8).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira