slawekjaranowski commented on code in PR #89: URL: https://github.com/apache/maven-dependency-analyzer/pull/89#discussion_r1233382350
########## src/main/java/org/apache/maven/shared/dependency/analyzer/asm/DependencyClassFileVisitor.java: ########## @@ -75,6 +75,9 @@ public void visitClass(String className, InputStream in) { // some bug inside ASM causes an IOB exception. Log it and move on? // this happens when the class isn't valid. logger.warn("Unable to process: " + className); + } catch (IllegalArgumentException e) { + // [MSHARED-1248] should log instead of failing when analyzing a corrupted jar file + logger.warn("Unable to process: " + className, e); Review Comment: As I see all project production and tests classes are analyzed. Maybe allowing exclusion for some path, patterns will be what we need. In specific project we know which classes are broken and which should be excluded. So we not need to ignore errors when we will can exclude what we want. @garydgregory - What do you think? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org