← Back to Pull requests

Use Gradle's default javac source path and processor settings #500

Closed
unknown closed this pull request without merging on Nov 01, 2026 03:53 UTC
View on GitHub
unknown unknown commented on Oct 17, 2026 19:31 UTC
Author

The compile tasks pointed -sourcepath at the source directories and used the compile classpath as the annotation processor path. Neither is needed, and running every processor found on the classpath becomes a liability once dependency resolution turns transitive: any newly arrived jar that ships a processor would start running.

The only processors on any classpath today are log4j-core's (PluginProcessor, GraalVmProcessor; no other resolved or vendored jar ships a META-INF/services/javax.annotation.processing.Processor), and no source uses @Plugin, so they generated nothing. Drop both overrides and let Gradle pass -proc:none with its own (empty) source path. As a side benefit, log4j-core's processors are not registered as incremental, so every change forced a full recompile of the module; incremental compilation now works.

Removing -sourcepath cannot change what is compiled: every source file is passed to javac explicitly, and the only file a source-set exclude hides (generator's HL7ModelGeneratorTest under /test/) is referenced by nothing.

Effect on the distribution, checked with oie-build-parity's compare_builds.py against a build of the parent commit (both built with clean build dist -PdisableSigning=true):

  • 711 files on both sides, same file set; 699 byte-identical; 478 of 490 jars/zips have identical entry contents.

  • 34 entries differ, 24 distinct classes in 12 jars, all anonymous inner classes: client-lib/mirth-client.jar (12) ChannelPanel$GroupAssignmentDialog$1, ChannelSetup$25, CustomAttachmentDialog$2, RegexAttachmentDialog$1/$3, MessageBrowserAdvancedFilter$1/$3, MirthPropertiesTable$1, BaseEditorPane$NameEditor$1, SourceSettingsPanel$1/$2, org.fife.ui.rtextarea.RTextArea$1 {server,client,cli}-lib/mirth-client-core.jar MirthMapperWrapper$1, net.lingala.zip4j.unzip.Unzip$1/$2 server-lib/mirth-server.jar: MirthMapperWrapper$1 {client,cli}-lib/donkey-model.jar, server-lib/donkey/donkey-model.jar, server-lib/donkey/donkey-server.jar: XStreamSerializer$1 extensions/http/http-client.jar: HttpListener$1, HttpSender$5/$7 extensions/smtp/smtp-client.jar: SmtpSender$1/$3 extensions/tcp/tcp-server.jar: TcpDispatcher$1/$2, TcpReceiver$1 compare_builds.py reports these as real differences (exit 1) because it treats any class content change as real.

  • For all 34 entries, javap -c -p -s output (bytecode, signatures, flags) is identical. The javap -v diff contains only Utf8 constants and LocalVariableTable rows: the anonymous class constructor's parameters, which javac copies from the superclass constructor (data, columnNames, name, wrapped, ...) while annotation processing is enabled, are now named arg0..N.
  • The LocalVariableTable is debug information only. No -parameters flag is used, so no MethodParameters attribute is emitted either way and reflection (Parameter.getName) is unaffected; the default serialVersionUID computation does not include it. The only visible change is debugger variable names in those constructors.

    Also drop CONTRIBUTING.md's parenthetical claiming the parity tooling reproduces a byte-identical comparison, which no longer holds.

    Assisted-by: Claude:claude-opus-5-5

    Diff: 393 lines (+294 / -99) across 4 files Reviewer: NicoPiel Review duration: 20661m
    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 · 393 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.358
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #500"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.1% (MEDIUM) · Higher = larger blast radius
    43.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17% · Safe to merge
    17%