[jni] Remove hack in findClass #3709
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.33) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 146 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.299
Real PR Conversation Timeline
1 comments
"Review active on #3709"
general
weight: 0.35
liamappelbe
Description
Moves class-name normalization out of
Jni.findClassand back toJType.jClass.JType.jClasswas passing object type signatures such asLjava/lang/Object;toJClass.forName, requiringJni.findClassto strip the leadingLand trailing;. This change converts object signatures to their JNI class names before lookup, while leaving array signatures such as[Iand[Ljava/lang/String;unchanged.This allows the temporary compatibility hack in
Jni.findClassto be removed.Related Issues
Fixes #3174
PR Checklist
dart tool/ci.dart --alllocally and resolved all issues identified. This ensures the PR is formatted, has no lint errors, and ran all code generators. This applies to the packages part of the toplevelpubspec.yamlworkspace.CHANGELOG.mdfor the relevant packages. (Not needed for small changes such as doc typos).