|
From: <jue...@we...> - 2004-09-17 12:43:30
|
Darren,
Indeed, that's a bug. I've already discovered and fixed it during the =
"import" tag stuff I worked on (last week, in the airport hotel in =
Rome). I initially wanted to commit all of that yesterday, but =
unfortunately I didn't make it. Will commit everything tonight.
Juergen
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...]On Behalf
Of Darren Davison
Sent: Friday, September 17, 2004 2:31 PM
To: spr...@li...
Subject: [Springframework-developer] bug in ClassPathResource?
createRelative(String) in ClassPathResource attempts to create a =
Resource
relative to only the FIRST part of the package name rather than all of =
it. So
if I have..
Resource root =3D new ClassPathResource("com/foo/bar/");
Resource res=3D root.createRelative("myFile.xml");
I would *expect* res.path to be "com/foo/bar/myFile.xml" instead it is
"com/myFile.xml"
Am I missing something? If not, I think the quickest fix is on line 117
(untested):
- int packageIndex =3D this.path.indexOf('/');
+ int packageIndex =3D this.path.lastIndexOf('/');
Regards,
--=20
Darren Davison
Public Key: http://www.davison.uk.net/pages/key.htm
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|