spotbugs / spotbugs-maven-plugin

Maven Mojo Plug-In to generate reports based on the SpotBugs Analyzer
https://spotbugs.github.io/spotbugs-maven-plugin/
Apache License 2.0
79 stars 54 forks source link

makeConcatWithConstants + apply classes needed for analysis were missing #697

Open ksloo1788 opened 11 months ago

ksloo1788 commented 11 months ago

The following errors occurred during analysis: [java] Exception analyzing com.controller.Controller using detector com.h3xstream.findsecbugs.spring.SpringEntityLeakDetector [java] java.lang.IllegalArgumentException: Invalid class name java/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object [java] At edu.umd.cs.findbugs.classfile.ClassDescriptor.(ClassDescriptor.java:59) [java] At edu.umd.cs.findbugs.classfile.DescriptorFactory.getClassDescriptor(DescriptorFactory.java:128) [java] At edu.umd.cs.findbugs.AnalysisCacheToRepositoryAdapter.loadClass(AnalysisCacheToRepositoryAdapter.java:90) [java] At org.apache.bcel.Repository.lookupClass(Repository.java:180) [java] At com.h3xstream.findsecbugs.spring.SignatureParserWithGeneric.typeToJavaClass(SignatureParserWithGeneric.java:75) [java] At com.h3xstream.findsecbugs.spring.SignatureParserWithGeneric.getReturnClasses(SignatureParserWithGeneric.java:60) [java] At com.h3xstream.findsecbugs.spring.SpringEntityLeakDetector.analyzeMethod(SpringEntityLeakDetector.java:112) [java] At com.h3xstream.findsecbugs.spring.SpringEntityLeakDetector.visitClassContext(SpringEntityLeakDetector.java:69) [java] At edu.umd.cs.findbugs.DetectorToDetector2Adapter.visitClass(DetectorToDetector2Adapter.java:76) [java] At edu.umd.cs.findbugs.FindBugs2.lambda$analyzeApplication$1(FindBugs2.java:1108) [java] At java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [java] At edu.umd.cs.findbugs.CurrentThreadExecutorService.execute(CurrentThreadExecutorService.java:86) [java] At java.base/java.util.concurrent.AbstractExecutorService.invokeAll(AbstractExecutorService.java:247) [java] At edu.umd.cs.findbugs.FindBugs2.analyzeApplication(FindBugs2.java:1118) [java] At edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:309) [java] At edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:395) [java] At edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1231) [java] The following classes needed for analysis were missing: [java] makeConcatWithConstants [java] apply

hazendaz commented 11 months ago

I believe that is coming from findsecbugs which is not this project. see https://github.com/find-sec-bugs/find-sec-bugs