Skip to content

Use Platformclassloader instead of Parentclassloader - #1009

Open
TorunR wants to merge 1 commit into
CROSSINGTUD:developfrom
SonarCryptography:platformclassloader
Open

Use Platformclassloader instead of Parentclassloader#1009
TorunR wants to merge 1 commit into
CROSSINGTUD:developfrom
SonarCryptography:platformclassloader

Conversation

@TorunR

@TorunR TorunR commented Aug 6, 2026

Copy link
Copy Markdown

This fixes a problem if the analyzed code has the same dependencies as Cognicrypt but in a conflicting version. In our case this was triggered by protobuf.
The PlatformClassLoader does not contain the classes that are needed by the analysis itself.

Maybe there should be some documentation that the default analysis runs the analyzed code (or at least its static initializers) for a subtype check.

This fixes a problem if the analyzed code has the same dependencies as Cognicrypt but in a conflicting version.
@swissiety
swissiety enabled auto-merge August 7, 2026 06:37
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.

2 participants