ASF Bugzilla – Attachment 23934 Details for
Bug 45785
ClassCastException if directory ending with .jar exists in WEB-INF/lib
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add support for directories with name ending on .jar
ExtensionValidator.java.diff (text/plain), 1.03 KB, created by
Rolf Wojtech
on 2009-07-07 00:35:40 UTC
(
hide
)
Description:
Add support for directories with name ending on .jar
Filename:
MIME Type:
Creator:
Rolf Wojtech
Created:
2009-07-07 00:35:40 UTC
Size:
1.03 KB
patch
obsolete
>--- D:/projekte/JBossWeb/ExtensionValidator.java Di Jul 7 09:30:29 2009 >+++ D:/projekte/JBossWeb/Kopie von ExtensionValidator.java Di Jul 7 09:31:45 2009 >@@ -90,7 +90,7 @@ > String classpathItem = strTok.nextToken(); > if (classpathItem.toLowerCase().endsWith(".jar")) { > File item = new File(classpathItem); >- if (item.exists()) { >+ if (item.exists() && !item.isDirectory()) { > try { > addSystemResource(item); > } catch (IOException e) { >@@ -413,7 +413,7 @@ > } > File[] files = targetDir.listFiles(); > for (int i = 0; i < files.length; i++) { >- if (files[i].getName().toLowerCase().endsWith(".jar")) { >+ if (files[i].getName().toLowerCase().endsWith(".jar") && !files[i].isDirectory()) { > try { > addSystemResource(files[i]); > } catch (IOException e) {
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 45785
: 23934