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 "Charitha Kankanamge (JIRA)" <ji...@apache.org> on 2008/05/29 08:46:44 UTC

[jira] Created: (AXIS2-3826) Invalid return type of the generated stub causes complie error

Invalid return type of the generated stub causes complie error 
---------------------------------------------------------------

                 Key: AXIS2-3826
                 URL: https://issues.apache.org/jira/browse/AXIS2-3826
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
         Environment: winxp, jdk15
            Reporter: Charitha Kankanamge
            Assignee: Amila Chinthaka Suriarachchi


I generated code using a public wsdl using default code gen options (ADB). However the generated stub shows compile errors due to an invalid return type in following stub method.
Here the return type String should be java.lang.String
private static synchronized String getUniqueSuffix(){
            // reset the counter if it is greater than 99999
            if (counter > 99999){
                counter = 0;
            }
            counter = counter + 1; 
            return Long.toString(System.currentTimeMillis()) + "_" + counter;
        }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3826) Invalid return type of the generated stub causes compile error

Posted by "John Peregrine (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718194#action_12718194 ] 

John Peregrine commented on AXIS2-3826:
---------------------------------------

This bug report has been open since May of 2008.  Any progress on this issue?

I can quickly workaround the issue by changing the return type of the getUniqueSuffix function from 'String' to 'java.lang.String', but it is progressively more annoying each time I regenerate my web service client, only to have code that will not compile, yet again.

I just tried this with the latest 1.5 version, and it too generates the exact same error.

It would be nice if someone was able to fix this seemingly simple bug (and close a long-running open issue while they're at it).

Thanks,
John Peregrine

> Invalid return type of the generated stub causes compile error 
> ---------------------------------------------------------------
>
>                 Key: AXIS2-3826
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3826
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Amila Chinthaka Suriarachchi
>
> I generated code using a public wsdl using default code gen options (ADB). However the generated stub shows compile errors due to an invalid return type in following stub method.
> Here the return type String should be java.lang.String
> private static synchronized String getUniqueSuffix(){
>             // reset the counter if it is greater than 99999
>             if (counter > 99999){
>                 counter = 0;
>             }
>             counter = counter + 1; 
>             return Long.toString(System.currentTimeMillis()) + "_" + counter;
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3826) Invalid return type of the generated stub causes compile error

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718236#action_12718236 ] 

Andreas Veithen commented on AXIS2-3826:
----------------------------------------

I tested this with the WSDL and the options provided in AXIS2-3827 and the return type of the generated getUniqueSuffix method is java.lang.String. The change that should have fixed this issue is r678385. Can you please provide evidence that the issue still persists?

> Invalid return type of the generated stub causes compile error 
> ---------------------------------------------------------------
>
>                 Key: AXIS2-3826
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3826
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Amila Chinthaka Suriarachchi
>
> I generated code using a public wsdl using default code gen options (ADB). However the generated stub shows compile errors due to an invalid return type in following stub method.
> Here the return type String should be java.lang.String
> private static synchronized String getUniqueSuffix(){
>             // reset the counter if it is greater than 99999
>             if (counter > 99999){
>                 counter = 0;
>             }
>             counter = counter + 1; 
>             return Long.toString(System.currentTimeMillis()) + "_" + counter;
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2-3826) Invalid return type of the generated stub causes compile error

Posted by "Charitha Kankanamge (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charitha Kankanamge updated AXIS2-3826:
---------------------------------------

    Summary: Invalid return type of the generated stub causes compile error   (was: Invalid return type of the generated stub causes complie error )

> Invalid return type of the generated stub causes compile error 
> ---------------------------------------------------------------
>
>                 Key: AXIS2-3826
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3826
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Assignee: Amila Chinthaka Suriarachchi
>
> I generated code using a public wsdl using default code gen options (ADB). However the generated stub shows compile errors due to an invalid return type in following stub method.
> Here the return type String should be java.lang.String
> private static synchronized String getUniqueSuffix(){
>             // reset the counter if it is greater than 99999
>             if (counter > 99999){
>                 counter = 0;
>             }
>             counter = counter + 1; 
>             return Long.toString(System.currentTimeMillis()) + "_" + counter;
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org