You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "tli (JIRA)" <ji...@apache.org> on 2007/01/10 08:39:27 UTC

[jira] Commented: (CXF-359) wsdl2java using wrong type (should use wrapper type, but use primitive type) for holder parameter when generating SEI class

    [ https://issues.apache.org/jira/browse/CXF-359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463484 ] 

tli commented on CXF-359:
-------------------------

Since currently, we're working on tools to tools2 refactoring, so I list the patch for fix below.
After the refactoring finished, we would patch below to the new tools (coming from current tools2) module.

Index: src/main/java/org/apache/cxf/tools/util/ProcessorUtil.java
===================================================================
--- src/main/java/org/apache/cxf/tools/util/ProcessorUtil.java	(revision 494297)
+++ src/main/java/org/apache/cxf/tools/util/ProcessorUtil.java	(working copy)
@@ -285,6 +285,12 @@
             }          
         } 
         
+        if (boxify) {
+            Class cls = JAXBUtils.holderClass(jtype); 
+            if (cls != null) {
+                jtype = cls.getName();
+            }
+        }
         
         return jtype;
     }


> wsdl2java using wrong type (should use wrapper type, but use primitive type) for holder parameter when generating SEI class
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-359
>                 URL: https://issues.apache.org/jira/browse/CXF-359
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0
>            Reporter: tli
>         Assigned To: tli
>
> wsdl2java using wrong type (should use wrapper type, but use primitive type) for holder parameter when generating SEI class
> e.g.
> wrong:
> public void test(javax.xml.ws.Holder<int> outRefInOutInt);
> correct:
> public void test(javax.xml.ws.Holder<Integer> outRefInOutInt);

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