Skip to content

SONARJAVA-7236 Experiment: supply only the JDK classpath to semsitter - #6497

Draft
leveretka wants to merge 2 commits into
rombirli/semsitter-ecj-replacement-v2from
experiment/semsitter-without-dependencies
Draft

leveretka wants to merge 2 commits into
rombirli/semsitter-ecj-replacement-v2from
experiment/semsitter-without-dependencies

Conversation

@leveretka

@leveretka leveretka commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

SONARJAVA-7236: Compare sem-sitter findings with only the running JDK supplied as its external classpath.

Both batch and single-file parsing send ${java.home}/lib/modules to the bridge. Project dependency JARs and compiled-class directories are excluded. Sem-sitter retains its built-in JDK fallback.

This draft is based on the sem-sitter PoC branch in #6415 and is intended for the comparison experiment. The classpath is used by bridge type lookups; the PoC does not explicitly forward it into its semantic graph scan settings.

The Develocity extension is also updated from 1.22.2 to 2.6.1 to fix its startup failure with local Maven 3.10.0.

Validation: frontend and prerequisite modules compile successfully with Java 21 and Maven 3.10.0 (mvn -B -ntp -o -pl java-frontend -am -Dmaven.test.skip=true -Dlicense.skip=true -Dscan=false compile). Diff whitespace checks pass. Rule tests and ruling have not been run locally.

Pass an empty classpath for batch and single-file parsing, removing dependency, compiled-class and runtime JDK provisioning. Keep the built-in semsitter JDK fallback.

Upgrade Develocity to 2.6.1 so frontend compilation succeeds with Maven 3.10.0.
@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

SONARJAVA-7236

@leveretka

Copy link
Copy Markdown
Contributor Author

/pvf

Use java.home/lib/modules for batch and single-file parsing while keeping project dependencies and compiled classes excluded.
@leveretka leveretka changed the title SONARJAVA-7236 Experiment: run semsitter without a supplied classpath SONARJAVA-7236 Experiment: supply only the JDK classpath to semsitter Nov 9, 2026
@gitar-bot

gitar-bot Bot commented Nov 9, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Restricting SemSitter’s classpath to JDK modules omits project dependencies, which could alter type resolution and produce incomplete or changed findings.

Experimental change that supplies only the running JDK's ${java.home}/lib/modules as the sem-sitter external classpath, excluding project dependency JARs and compiled-class directories, and bumps the Develocity extension to 2.6.1 to fix a Maven 3.10.0 startup failure. No issues found.

Verification Rules 2/2 met Repos 5 inspected

Functional validation No results

Rules 2 passed 1 not applicable

✅ Internal artifact registries
✅ Repository license compliance

Broader impact Repos 5 inspected
Cross-repo 5 repositories inspected 0 open impacts

SonarSource/sonarlint-vscode Inspected
SonarSource/sonarqube Inspected
SonarSource/sonarlint-intellij Inspected
SonarSource/sonarlint-core Inspected
SonarSource/sonar-java-symbolic-execution Inspected

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@hashicorp-vault-sonar-prod

Copy link
Copy Markdown
Contributor

📊 Performance Validation complete
🆕 25315 new · 🗑️ 639900 lost issues
View dashboard

Projects with unexpected PVF results:

  • org.apache.jackrabbit-jackrabbit
  • org.apache.opennlp-opennlp
  • org.codehaus.sonar-plugins.l10n-sonar-l10n-fr-plugin
  • xwiki-commons_master

This branch has not been deployed

No deployments
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.

1 participant