https://issues.apache.org/bugzilla/show_bug.cgi?id=52744

--- Comment #10 from xiaming <forres...@gmail.com> 2012-03-30 14:24:24 UTC ---
This happens in an OSGi application EBA, the web module in deployed EBA won't
be extracted into file system, instead it is still in jar file. When JASPER
read a jsp file timestamp from a jar, it could get a precise time, while the
compiled jsp .class file is read from the file system, the time precision is
not good as the one read from jar file.

In OSGi world, the code piece will be called, the uc is an instance of
JarURLConnection, so the precise time will be returned for jspRealLastModified.

            uc = jspUrl.openConnection();
            if (uc instanceof JarURLConnection) {
                result = ((JarURLConnection) uc).getJarEntry().getTime();
            } else {
                result = uc.getLastModified();
            }

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to