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 "Venkat Reddy (JIRA)" <ax...@ws.apache.org> on 2005/01/28 10:33:17 UTC

[jira] Created: (AXIS-1790) JavaStubWriter does not use FQN for java.lang.Object

JavaStubWriter does not use FQN for java.lang.Object
----------------------------------------------------

         Key: AXIS-1790
         URL: http://issues.apache.org/jira/browse/AXIS-1790
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2RC2    
 Environment: Axis 1.2 RC2
    Reporter: Venkat Reddy
 Assigned to: Venkat Reddy 
    Priority: Minor
     Fix For: 1.2RC2


The writeFileBody method uses just "Object" where it should have used "java.lang.Object". The created compilation issues in the code generated by WSDL2Java. The code generated already has "Object" class (because WSDL has it) in the same package as the stub class is.

Fix: I'm going to commit the following patch in a minute.

Index: JavaStubWriter.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaStubWriter.java,v
retrieving revision 1.140
diff -u -r1.140 JavaStubWriter.java
--- JavaStubWriter.java	20 Jan 2005 21:35:22 -0000	1.140
+++ JavaStubWriter.java	28 Jan 2005 09:13:44 -0000
@@ -353,7 +353,7 @@
             pw.println(
                     "                                (javax.xml.namespace.QName) cachedSerQNames.get(i);");
             pw.println(
-                    "                        Object x = cachedSerFactories.get(i);");
+                    "                        java.lang.Object x = cachedSerFactories.get(i);");
             pw.println(
                     "                        if (x instanceof Class) {");
             pw.println(


-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1790) JavaStubWriter does not use FQN for java.lang.Object

Posted by "Venkat Reddy (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1790?page=history ]
     
Venkat Reddy resolved AXIS-1790:
--------------------------------

    Resolution: Fixed

Applied patch.

> JavaStubWriter does not use FQN for java.lang.Object
> ----------------------------------------------------
>
>          Key: AXIS-1790
>          URL: http://issues.apache.org/jira/browse/AXIS-1790
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC2
>  Environment: Axis 1.2 RC2
>     Reporter: Venkat Reddy
>     Assignee: Venkat Reddy
>     Priority: Minor
>      Fix For: 1.2RC2

>
> The writeFileBody method uses just "Object" where it should have used "java.lang.Object". The created compilation issues in the code generated by WSDL2Java. The code generated already has "Object" class (because WSDL has it) in the same package as the stub class is.
> Fix: I'm going to commit the following patch in a minute.
> Index: JavaStubWriter.java
> ===================================================================
> RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaStubWriter.java,v
> retrieving revision 1.140
> diff -u -r1.140 JavaStubWriter.java
> --- JavaStubWriter.java	20 Jan 2005 21:35:22 -0000	1.140
> +++ JavaStubWriter.java	28 Jan 2005 09:13:44 -0000
> @@ -353,7 +353,7 @@
>              pw.println(
>                      "                                (javax.xml.namespace.QName) cachedSerQNames.get(i);");
>              pw.println(
> -                    "                        Object x = cachedSerFactories.get(i);");
> +                    "                        java.lang.Object x = cachedSerFactories.get(i);");
>              pw.println(
>                      "                        if (x instanceof Class) {");
>              pw.println(

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira