You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[java] matchesSig does not match some signatures that it should #6113
Maybe Designer could warn about missing classes in resolution though? Also this specific case when argument list is empty and class name is an exact match might be possible to handle without having the bytecode.
Ah, that makes sense. I agree that the designer should warn about missing classes.
I think there's also an unrelated bug with setting the analysis classpath. When I added the JAR, that didn't seem to have any effect until I changed the source level from 25 to something else. It still worked fine after changing it back, so I'm guessing something isn't reloading the classpath when items are added/removed.
Activity
zbynek commentedon Oct 4, 2025
matches-sigin general needs the source code or bytecode of the referenced class to be able to resolve overloads. In designer you can go to View > Analysis Classpath and add the .jar downloaded from https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api/2.25.2 , then the example above works.Maybe Designer could warn about missing classes in resolution though? Also this specific case when argument list is empty and class name is an exact match might be possible to handle without having the bytecode.
rdicroce commentedon Oct 6, 2025
Ah, that makes sense. I agree that the designer should warn about missing classes.
I think there's also an unrelated bug with setting the analysis classpath. When I added the JAR, that didn't seem to have any effect until I changed the source level from 25 to something else. It still worked fine after changing it back, so I'm guessing something isn't reloading the classpath when items are added/removed.
zbynek commentedon Oct 15, 2025
I suggest to close this in favor of pmd/pmd-designer#258 and pmd/pmd-designer#257 (feel free to reopen if you think something needs changing in this repo).