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 "Peter Neumcke (JIRA)" <ji...@apache.org> on 2009/04/27 13:06:30 UTC

[jira] Created: (AXIS2-4326) JAXWSDeployer: error in getListOfClasses()

JAXWSDeployer: error in getListOfClasses()
------------------------------------------

                 Key: AXIS2-4326
                 URL: https://issues.apache.org/jira/browse/AXIS2-4326
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
    Affects Versions: 1.4.1
         Environment: all
            Reporter: Peter Neumcke
            Priority: Minor


the code in class JAXWSDeployer method getListOfClasses tries to transform the name of a class file to a real java class name.
The logic fails if the classname contains something like "proclassic", since the execution of
  name = name.replaceAll(".class", "");
does not only remove the ".class" at the end but also the "oclass" in the middle of the file name.
replaceAll interprets the arguments as regular expression and the "." stands for "Any character".

The error could be prevented by changing the call to replaceAll(".class$", "") - only matching on .class at the end of the line. Or by replacing the replaceAll call with cutting the last 6 characters (since it's already ensured that the string ends with ".class").



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


[jira] Resolved: (AXIS2-4326) JAXWSDeployer: error in getListOfClasses()

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

Andreas Veithen resolved AXIS2-4326.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

> JAXWSDeployer: error in getListOfClasses()
> ------------------------------------------
>
>                 Key: AXIS2-4326
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4326
>             Project: Axis2
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.5.1, 1.5, 1.4.1
>         Environment: all
>            Reporter: Peter Neumcke
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: 1.6
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the code in class JAXWSDeployer method getListOfClasses tries to transform the name of a class file to a real java class name.
> The logic fails if the classname contains something like "proclassic", since the execution of
>   name = name.replaceAll(".class", "");
> does not only remove the ".class" at the end but also the "oclass" in the middle of the file name.
> replaceAll interprets the arguments as regular expression and the "." stands for "Any character".
> The error could be prevented by changing the call to replaceAll(".class$", "") - only matching on .class at the end of the line. Or by replacing the replaceAll call with cutting the last 6 characters (since it's already ensured that the string ends with ".class").

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


[jira] Updated: (AXIS2-4326) JAXWSDeployer: error in getListOfClasses()

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

Andreas Veithen updated AXIS2-4326:
-----------------------------------

    Affects Version/s: 1.5.1
                       1.5
             Assignee: Andreas Veithen

> JAXWSDeployer: error in getListOfClasses()
> ------------------------------------------
>
>                 Key: AXIS2-4326
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4326
>             Project: Axis2
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.5.1, 1.5, 1.4.1
>         Environment: all
>            Reporter: Peter Neumcke
>            Assignee: Andreas Veithen
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the code in class JAXWSDeployer method getListOfClasses tries to transform the name of a class file to a real java class name.
> The logic fails if the classname contains something like "proclassic", since the execution of
>   name = name.replaceAll(".class", "");
> does not only remove the ".class" at the end but also the "oclass" in the middle of the file name.
> replaceAll interprets the arguments as regular expression and the "." stands for "Any character".
> The error could be prevented by changing the call to replaceAll(".class$", "") - only matching on .class at the end of the line. Or by replacing the replaceAll call with cutting the last 6 characters (since it's already ensured that the string ends with ".class").

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


[jira] Commented: (AXIS2-4326) JAXWSDeployer: error in getListOfClasses()

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

Andreas Veithen commented on AXIS2-4326:
----------------------------------------

POJODeployer also contains the same code and needs to be fixed.

> JAXWSDeployer: error in getListOfClasses()
> ------------------------------------------
>
>                 Key: AXIS2-4326
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4326
>             Project: Axis2
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: 1.5.1, 1.5, 1.4.1
>         Environment: all
>            Reporter: Peter Neumcke
>            Assignee: Andreas Veithen
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> the code in class JAXWSDeployer method getListOfClasses tries to transform the name of a class file to a real java class name.
> The logic fails if the classname contains something like "proclassic", since the execution of
>   name = name.replaceAll(".class", "");
> does not only remove the ".class" at the end but also the "oclass" in the middle of the file name.
> replaceAll interprets the arguments as regular expression and the "." stands for "Any character".
> The error could be prevented by changing the call to replaceAll(".class$", "") - only matching on .class at the end of the line. Or by replacing the replaceAll call with cutting the last 6 characters (since it's already ensured that the string ends with ".class").

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