Replace javaparser 1.0.8 with javaparser-core 3.28.2 #535
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 389 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.357
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #535"
general
weight: 0.35
tonygermano
Fixes #533
Fixes #327
Part of #472 (the "Replace
javaparser-1.0.8" item)Problem
The Administrator builds its code reference list (Reference tab, CTRL+space) by parsing the
userutilsources with javaparser 1.0.8. That version only knows the Java 5 grammar, so any newer syntax in a userutil source (pattern matching, switch expressions, lambdas, diamond, try-with-resources, ...) makes it throw aParseException.ReferenceListFactorylogs the error and drops that class from code assist. #533 is this happening to our ownDestinationSetafter it started usinginstanceof Set<?> set, and #327 is the same thing for extensionCLIENTsource jars.Change
client/lib/javaparser-1.0.8.jarforcom.github.javaparser:javaparser-core:3.28.2from Maven Central. It goes in theclient-mainbundle like the other client libs, with avendored-layout.jsonplacement entry and checksums regenerated on a cold cache. It has no transitive dependencies.LanguageLevel.CURRENT, the newest grammar the library supports (JAVA_26in 3.28.2). Extension userutil sources may target a newer Java than our baseline, and we only read signatures and javadoc. A failed parse throwsParseProblemException, so it's still logged per file as before.ClassVisitorto the 3.x API (Modifier.Keyword,Optionaljavadoc,NodeList, and the package name taken fromgetPackageDeclaration()).THIRD-PARTY-README.txt. javaparser-core is dual-licensed LGPL-3.0-or-later / Apache-2.0.Verification
ClassVisitorproduces for alluserutilsources (core, server and httpauth) with the old and new parser. The output is identical except for one entry:MirthCachedRowSet.updateBytes(String columnName, byte x[])now shows the parameter type asbyte[]. The old parser dropped the C-style array brackets and showedbyte.DestinationSetwithinstanceof Set<?> set, as it is on main, parses cleanly and produces the expected entries. So #534's rewrite is no longer needed, though it doesn't conflict with this change../gradlew --write-verification-metadata sha256 build dist -PdisableSigning=true -Pcoverage=truepasses on a cold Gradle home.CURRENT, the dump of all userutil sources is unchanged. A test record produces no entries, and a class using a Java 21 patternswitch(case String t ->,case R(int x) ->) parses and produces its entries.Not in scope
ClassVisitorstill only creates references for classes and interfaces, as before. Records now parse, and a no-opvisit(RecordDeclaration)keeps their methods from showing up as stray entries under the package name. Enums keep their existing behavior: their public methods appear under the package name, which is where the currenttoStringentries forDeployedStateandContentTypecome from. Giving records and enums proper class entries would be a separate change.🤖 Generated with Claude Code