I'm not a ClassUtils expert, but seeing as getCanonicalPath optimization
is important to me I feel I should encourage this thread!
As far as I can see there shouldn't be any need for getCanonicalPath() in
this method, however, I'm not sure that ClassUtils.lastModified is used by
Cocoon at the moment, it also doesn't seem to match its description,
because it only checks the modification of a class file, not a class
within a library (I presume this means .jar) file.
Stuart.
On Thursday, July 5, 2001, at 02:27 am, Vadim Gritsenko wrote:
> Dear cocooners,
>
> After reading "performance issues under Mac OS X", I would like to
> do small change to ClassUtils, however do not know whould this change
> have any side effect or not. The change is in one line:
> ------------------------------------------------------
> String basename =
> className.substring(className.lastIndexOf(".") + 1);
>
> - File file = new File(directory.getCanonicalPath() +
> File.separator + basename + ".class");
> + File file = new File(directory, basename + ".class");
>
> return file.lastModified();
> ------------------------------------------------------
>
> PS: This works for me (Win + JDK1.3)
>
> Thanks,
> Vadim
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
-------------------------------------------------------------------------
Stuart Roebuck [EMAIL PROTECTED]
Lead Developer Java, XML, MacOS X, XP, etc.
ADOLOS <http://www.adolos.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]