The following document contains the results of FindBugs Report
FindBugs Version is 1.1.1
Threshold is Low
Effort is Default
| Classes | Bugs | Errors | Missing Classes |
|---|---|---|---|
| 140 | 6 | 1 | 8 |
| Class | Bugs |
|---|---|
| org.apache.commons.jci.compilers.JavacClassLoader$1 | 1 |
| org.apache.commons.jci.compilers.JavacJavaCompiler | 2 |
| org.apache.commons.jci.compilers.JavacJavaCompilerSettings | 3 |
| Bug | Category | Details | Line |
|---|---|---|---|
| The class org.apache.commons.jci.compilers.JavacClassLoader$1 could be refactored into a named _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_ANON | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.apache.commons.jci.compilers.JavacJavaCompiler.compile(String[],org.apache.commons.jci.readers.ResourceReader,org.apache.commons.jci.stores.ResourceStore,ClassLoader,JavaCompilerSettings) creates a org.apache.commons.jci.compilers.JavacClassLoader classloader, which should be performed within a doPrivileged block | BAD_PRACTICE | DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED | 66 |
| Method org.apache.commons.jci.compilers.JavacJavaCompiler.compile(String[],org.apache.commons.jci.readers.ResourceReader,org.apache.commons.jci.stores.ResourceStore,ClassLoader,JavaCompilerSettings) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 88 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.apache.commons.jci.compilers.JavacJavaCompilerSettings.getCustomArguments() may expose internal representation by returning org.apache.commons.jci.compilers.JavacJavaCompilerSettings.customArguments | MALICIOUS_CODE | EI_EXPOSE_REP | 43 |
| org.apache.commons.jci.compilers.JavacJavaCompilerSettings.setCustomArguments(String[]) may expose internal representation by storing an externally mutable object into org.apache.commons.jci.compilers.JavacJavaCompilerSettings.customArguments | MALICIOUS_CODE | EI_EXPOSE_REP2 | 39 |
| Field not initialized in constructor: org.apache.commons.jci.compilers.JavacJavaCompilerSettings.customArguments | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |