axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ferdinand Niedermann <ferdinand.niederm...@gmail.com>
Subject Bug in JAXWSDeployer.java (Axis2 1.5.4)
Date Wed, 18 May 2011 18:27:43 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello

I believe I may have found a bug in Axis2.
In JAXWSDeployer.java in the method protected ArrayList
getListOfClasses(DeploymentFileData deploymentFileData):

The line

name = name.replaceAll(".class", "");

needs to be replaced with

name = name.replaceAll("\\.class", "");

because the first argument of replaceAll is a Regex. Otherwise
"/classes/Foo.class" in name would be removed as well, resulting in
"es.Foo" which is obviously wrong.

I don't know whether this is already fixed in the trunk.

Ferdinand Niedermann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3UD58ACgkQ8t2WdJZzhZ+XyQCfXKtLOAj1Q/CaN9WyTyaPfISC
ilcAnA4kiLYv28qbomS/0jEidG+xBOI2
=4AVc
-----END PGP SIGNATURE-----

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


Mime
View raw message