Find Java correctly when JAVA_TOOL_OPTIONS is set (fixes #523) #561
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 185 lines diff across 2 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.313
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #561"
general
weight: 0.35
tonygermano
Find Java correctly when JAVA_TOOL_OPTIONS is set (fixes #523)
Problem
is_valid_java_version()inoieserverreadsjava -versionand takes the first line:When
JAVA_TOOL_OPTIONS(or_JAVA_OPTIONS) is set, the JVM prints aPicked upbanner to stderr before the version line.JAVA_TOOL_OPTIONS: …
head -n 1thenreads the banner instead of
openjdk version "17.0.x",major_versionis not numeric,every candidate Java is rejected, and the server refuses to start.
Fix
Select the line that actually contains the quoted version string before cutting, so the
banner (or any other leading stderr noise) is ignored:
One line changed in
server/basedir-includes/oieserver.Verification
java -versionunder a JDK 17 runtime, with and withoutJAVA_TOOL_OPTIONS:The banner case now parses correctly, and the normal case is unchanged.