Repository navigation
JAVA-7383 Add a static helper parsing method for single files - #6559
Conversation
This comment has been minimized.
This comment has been minimized.
…th, JavaVersion javaVersion)
CI failed: Two CI jobs failed during SonarQube analysis because the scanner timed out downloading its provisioned analysis JRE from the SonarQube server. Both are classified as infrastructure or network issues, and the supplied evidence does not connect them to this PR's single-file parsing helper changes, though the diagnosis is not fully confirmed.OverviewTwo CI jobs failed during SonarQube analysis because the scanner timed out downloading its provisioned analysis JRE from the SonarQube server. Both are classified as infrastructure or network issues, and the supplied evidence does not connect them to this PR's single-file parsing helper changes, though the diagnosis is not fully confirmed. FailuresSonarScanner JRE download from SonarQube timed out (infrastructure, not related to PR)
Summary
Code Review ✅ Approved 🟡 Medium riskThe new single-file parsing API wraps checked failures as IllegalStateException, so callers may see unchecked parse or file-read failures. Adds a static Verification Rules 3/3 met Repos 1 inspectedFunctional validation No results Rules 3 passed 2 not applicable
Broader impact Repos 1 inspectedCross-repo 1 repository inspected 0 open impactsAuto-approval Not enabledFor more verification details, comment Tip 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 |
|




Summary by Gitar
JParser.parse(InputFile, List<File>, JavaVersion)returning a file'sCompilationUnitTree, wrapping checked exceptions inIllegalStateExceptionand rethrowing runtime exceptions unchangedJParserTestcases for empty and supplied classpaths, Java version selection, syntax errors, and file-read failuresJParserTestUtilshelper to call the newJParser.parsemethoddocumentation.mdThis will update automatically on new commits.