Skip to content

feat: enhance ClassLoadersScanner with support for scanning classes f… - #216

Merged
iryabov merged 1 commit into
mainfrom
fix/executable-jar-scanner
Nov 5, 2026
Merged

iryabov merged 1 commit into
mainfrom
fix/executable-jar-scanner

Conversation

@iryabov

@iryabov iryabov commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

…rom executable jars and nested jars

@sonarqubecloud

sonarqubecloud Bot commented Nov 3, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block the archive-scanning changes.

No open issues 🎉

What changed in this PR

Improves archive scanning in the test2code agent to support executable JARs with prepended launch scripts and adds coverage for Spring Boot archive layouts.

Changes:

  • Uses JarFile for top-level archives and shares entry-processing logic with nested archive scanning.
  • Adds tests for BOOT-INF/classes, nested dependency JARs, and executable JARs.
  • Skips build finalization when no methods were scanned.
File Description
test2code/​src/​test/​kotlin/​com/​epam/​drill/​agent/​test2code/​classloading/​ClassLoadersScannerTest.kt Adds archive-scanning tests and fixture helpers.
test2code/​src/​main/​kotlin/​com/​epam/​drill/​agent/​test2code/​Test2Code.kt Guards build finalization on a nonzero method count.
test2code/​src/​main/​kotlin/​com/​epam/​drill/​agent/​test2code/​classloading/​ClassPathScanner.kt Uses JarFile for executable archives and consolidates entry scanning.

Review effort: Balanced

@iryabov
iryabov merged commit 4d6249a into main Nov 5, 2026
5 checks passed
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