Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kzantow
Copy link
Contributor

@kzantow kzantow commented Jul 2, 2025

Description

This PR makes some changes to binary detection of Java packages:

  • a sequential/branching evidence matcher is introduced, where the first result stops further packages from being surfaced for the same file
  • the package names, PURLs, and CPEs have been updated to match what the JVM cataloger returns

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have added unit tests that cover changed behavior
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections

cpe.Must("cpe:2.3:a:redis:redis:*:*:*:*:*:*:*:*", cpe.NVDDictionaryLookupSource),
},
},
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the java classifiers have been moved to a separate file 👇

@kzantow kzantow marked this pull request as ready for review July 2, 2025 18:29
Signed-off-by: Keith Zantow <[email protected]>
@kzantow kzantow merged commit 48bf81c into main Jul 22, 2025
12 checks passed
@kzantow kzantow deleted the fix/oracle-jdk-misidentification branch July 22, 2025 16:06
@kzantow kzantow linked an issue Jul 24, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve JVM Scan Accuracy for JDK and JRE Detection Azul JDK classified as Oracle JRE

2 participants