Category: | Bug report |
Priority: | Normal |
Status: | New |
Project: | Severity: | Minor |
Resolution: | Open |
|
Component: | Reproducibility: | N/A |
Assigned to: |
I added a folder from an exploded java ee enterprise archive deployment EJB module - ie app.ear/app.jar/ to the classpath of ireport and found that it was not loaded.
I tracked the problem down to ReportClassLoader.java
boolean isJar(String pathEntry) {
return pathEntry.toLowerCase().endsWith(".jar") || pathEntry.toLowerCase().endsWith(".zip");
}
and I changed it to
boolean isJar(String pathEntry) {
File file = new File(pathEntry);
return (file != null && ! file.isDirectory()) && (pathEntry.toLowerCase().endsWith(".jar") || pathEntry.toLowerCase().endsWith(".zip"));
}
Could you please consider this change for the next release?
v5.0.0