Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not log message about missing classes (while parsing class files; not signatures) multiple times #207

Closed
uschindler opened this issue Oct 2, 2022 · 2 comments · Fixed by #210
Assignees
Milestone

Comments

@uschindler
Copy link
Member

When you parse class files where not all dependencies are available, you can optionally set failOnMissingClasses = false, but this prints a message on each occurence of a missing class, so the same message is printed sometimes hundreds of times.

Like for signatures parsing, it should only print a summary at end using WARN.

@uschindler
Copy link
Member Author

PR: #210

@uschindler
Copy link
Member Author

Output with the attached PR now looks like (this example is from checking classes compiled against Java 19 with Java 17):

> Task :lucene:core:forbiddenApisMain19
While scanning classes to check, the following referenced classes were not found on classpath (this may miss some violations):
  java.lang.foreign.MemorySegment, java.lang.foreign.MemorySession, java.lang.foreign.ValueLayout,... (and 5 more).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant