[ 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.