Repository navigation
Conversation
f926156 to
f6fcc26
Compare
443ce78 to
db342cb
Compare
2a388ae to
9b58b2e
Compare
c6e5aeb to
113ddba
Compare
113ddba to
b2b522f
Compare
23378b5 to
3905597
Compare
3905597 to
f661a33
Compare
f661a33 to
8aa5c01
Compare
efe12fe to
1b2806e
Compare
8714987 to
f8547df
Compare
f8547df to
b625fd0
Compare
b625fd0 to
458c30b
Compare
458c30b to
81dec85
Compare
81dec85 to
3cc77ee
Compare
3cc77ee to
90c4f6f
Compare
90c4f6f to
1cf96ca
Compare
1cf96ca to
9e067e2
Compare
9e067e2 to
6abbc8c
Compare
Code Review ✅ Approved 🟡 Medium risk 4 closed / 4 findingsRegistering the SemSitter parser behind a Cloud flag changes Java parsing when enabled; configuration or parser issues could fail analyses. Registers the SemSitter parser provider behind the ✅ 4 closed✅ Performance: LaunchDarkly is queried again for every module of the same project
Closed: Edge Case: A failed or timed-out flag read is cached for the life of the JVM
Closed: Quality: PR description still promises a LaunchDarkly lookup the code dropped
Closed: Quality: PR description flowchart still says no executable falls back to ECJ
Verification Rules 3/3 met Repos 3 inspected · PRs 3 inspectedFunctional validation No results Rules 3 passed 2 not applicable
Broader impact Repos 3 inspected PRs 3 inspectedCross-repo 3 repositories inspected 0 open impacts
Cross-PR 3 PRs inspected 0 open impacts
Auto-approval Not enabledFor more verification details, comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|




Part 16 of 17 of JAVA-7392. Ticket: JAVA-7406.
Intent
Register
SemSitterParserProvider(theJParserProviderof PR1) and package the module in the plugin. SonarQube Cloud turns the SemSitter frontend on through the context property. An analysis that asks for it gets it or fails: there is no fallback to ECJ.flowchart TD C[configure] --> P{sonar.java.internal.semsitter.enabled} P -->|false or absent| ECJ[ECJ] P -->|true| E{executable known?<br/>sonar.java.semsitter.executable or SEMSITTER_ANALYZER} E -->|yes| SS[SemSitterParser] E -->|no or blank| F[analysis fails: IllegalStateException]Plugin: dependency on
java-frontend-semsitter, shading filter, license files ofanalyzer-wireandprotobuf-java, and a max jar size raised to 24 MB.State on master
SonarQube Cloud does not send the property yet, so ECJ keeps parsing everything. An executable alone does not turn the frontend on.
Test plan
SemSitterParserProviderTest: flag on without an executable fails (property and environment named in the message), blank executable counts as none, flag off or absent keeps ECJ, executable from the property and from the environment, reconfiguration, created parser