ASF Bugzilla – Attachment 23066 Details for
Bug 37458
Datarace on org.apache.catalina.loader.WebappClassLoader
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for WebappClassLoader class of tc6.0.x
WebappClassLoader_tc60.patch (text/plain), 2.35 KB, created by
Konstantin Kolinko
on 2009-01-01 18:44:06 UTC
(
hide
)
Description:
patch for WebappClassLoader class of tc6.0.x
Filename:
MIME Type:
Creator:
Konstantin Kolinko
Created:
2009-01-01 18:44:06 UTC
Size:
2.35 KB
patch
obsolete
>Index: org/apache/catalina/loader/WebappClassLoader.java >=================================================================== >--- org/apache/catalina/loader/WebappClassLoader.java (revision 730656) >+++ org/apache/catalina/loader/WebappClassLoader.java (working copy) >@@ -1793,7 +1793,11 @@ > return clazz; > > synchronized (this) { >- if (entry.binaryContent == null && entry.loadedClass == null) >+ clazz = entry.loadedClass; >+ if (clazz != null) >+ return clazz; >+ >+ if (entry.binaryContent == null) > throw new ClassNotFoundException(name); > > // Looking up the package >@@ -1842,26 +1846,21 @@ > > } > >- if (entry.loadedClass == null) { >- try { >- clazz = defineClass(name, entry.binaryContent, 0, >- entry.binaryContent.length, >- new CodeSource(entry.codeBase, entry.certificates)); >- } catch (UnsupportedClassVersionError ucve) { >- throw new UnsupportedClassVersionError( >- ucve.getLocalizedMessage() + " " + >- sm.getString("webappClassLoader.wrongVersion", >- name)); >- } >- entry.loadedClass = clazz; >- entry.binaryContent = null; >- entry.source = null; >- entry.codeBase = null; >- entry.manifest = null; >- entry.certificates = null; >- } else { >- clazz = entry.loadedClass; >+ try { >+ clazz = defineClass(name, entry.binaryContent, 0, >+ entry.binaryContent.length, >+ new CodeSource(entry.codeBase, entry.certificates)); >+ } catch (UnsupportedClassVersionError ucve) { >+ throw new UnsupportedClassVersionError( >+ ucve.getLocalizedMessage() + " " + >+ sm.getString("webappClassLoader.wrongVersion", name)); > } >+ entry.loadedClass = clazz; >+ entry.binaryContent = null; >+ entry.source = null; >+ entry.codeBase = null; >+ entry.manifest = null; >+ entry.certificates = null; > } > > return clazz;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 37458
: 23066 |
23067
|
23068