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.

Reply via email to