On Thu, 5 Jul 2001, Stuart Roebuck wrote:

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

i concur, there should be no reason to do this:

File file = new File(directory.getCanonicalPath() + File.separator + bas
ename + ".class");

instead of simply this:

File file = new File(directory,basename+".class");

anyone disagree?

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to