Repository navigation
Conversation
cpurdy
approved these changes
Nov 24, 2026
cpurdy
left a comment
Collaborator
There was a problem hiding this comment.
Milestone. Rolling up already-reviewed projects/changes.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
- Require explicit compiler listeners and reasons for silence. - Document listener ownership and demonstrate host regressions. - Clarify listener nullability and add standalone silence constructor. - Remove unnecessary wrapping from TypeInfo listener calls. - Use one shared compiler error budget for default listeners. - Reuse silent listeners within related compiler checks. - Describe listener regression baseline without internal slice labels. The migration includes master's embedded run code: InterpreterControl's entry-method reports use errs.error and errs.warn, and EmbeddingSupport keeps master's runMethod, with its entry point and console input, beside run. Validation: the touched builds compile. The suites and the playbooks ran on the last commit of this series. Rebased onto master 8b5257f on 2026-11-25: the three newable checks that master's #803 added said ErrorListener.BLACKHOLE; they say silent(PROBE), as the probes here do.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
PROBE and BLACKHOLE were constants and suppressCascade() was an instance method,
so the same idea read three different ways. The asymmetry was not arbitrary - 76
of the 160 probe sites have no listener in scope at all, so a probe cannot always
be derived from one - but that reason was invisible, which left it looking like
inconsistency.
There is now one concept and two entry points that differ only by whether the
caller has a listener to derive from:
silent(why) // no listener: a shared constant per reason
errs.silence(why) // a listener: a wrapper that keeps it reachable
Silence names the three reasons - PROBE, CASCADE, DISCARD - and silenceReason()
gives one back, so a host republishing diagnostics can finally tell a probe from
a cascade. That distinction is the point: a probe's diagnostics are worthless to
everyone, whereas a cascade's are real diagnostics that happen to be fallout, and
an editor may want them as related information for the one that matters.
CascadeErrorListener and the old SilentErrorListener collapse into one class
carrying the reason. Behaviour is unchanged throughout - all three still discard,
still answer isSilent(), and nothing branches on which is held - and the whole
XDK compiles to byte-identical modules, all 22 of them, with the timestamp masked.
Rebased onto master 8b5257f on 2026-11-25: the three newable checks that master's #803 added said
ErrorListener.BLACKHOLE; they say silent(PROBE), as the probes here do.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
… getJitICType() Master's #803 removed TypeConstant.getJitICType(), the import's only user; the rebase onto it left the import unused. Its newable checks say silent(PROBE) from the commit that removed ErrorListener.BLACKHOLE on, so every commit of the rebased history compiles.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…#693 Docs only. The map was built at #693's 49b5f8a on 535e80f; after the rebase onto master's 8b5257f, #693 is ef37030. Each row now has the commit's new position and hash, with the old ones beside them, through errs-693-rebase-2026-11-25.tsv: old position 405, #800's copy, which master has, is marked dropped, and position 468, the rebase's removal of an import that #803 left unused in TypeConstant, is added to diagnostics-embedding, to fold into position 3 when that unit is cut. The roadmap's map section and GitHub state name the new head. Checked: 468 positioned rows, positions 1-468 each once, every commit of origin/master..ef37030 in the table.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
… getJitICType() Master's #803 removed TypeConstant.getJitICType(), the import's only user; the rebase onto it left the import unused. Its newable checks say silent(PROBE) from the commit that removed ErrorListener.BLACKHOLE on, so every commit of the rebased history compiles.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
Both branches were backed up as backup/lagergren-errs-2026-11-25 (c8c6d6f) and backup/693-2026-11-25 (49b5f8a), and tags of those names, then rebased onto master's 8b5257f, past #792, #798 (Gradle 9.9.2), #797, #796, #799, #800, #790, #793 and #803 (the JIT milestone's JitInfo). errs-rebase-2026-11-25.tsv maps errs' 1746 commits (from 60d36426eb, the remote's c8c6d6f with the commit that aligns errs' code to #693's): 1739 replayed, six with a resolved conflict, and a2e343c dropped, which master has as #800. errs-693-rebase-2026-11-25.tsv maps #693's 468 (from 49b5f8a): 466 replayed, one resolved, and its #800 copy 09e61bd dropped. Every conflict was in TypeConstant.java, where #803 moved the JIT class names into JitInfo, removing getJitCCType(), getJitICType() and the CD_Class and CD_Ctx imports. Each is resolved keeping master's change and the branch's: - errs' 1a5a748, 3f272ef, 7becf17, a500b09 and ac92dcf edit getJitICType()'s assert (its listener, BLACKHOLE to PROBE to silent(PROBE)) or the two methods' javadoc. Those methods are gone, so those hunks keep master's side; the commits' other changes apply. - errs' 23faf03 moves the ErrorListener static imports up beside CD_Class and CD_Ctx, and #693's 29029a8 adds them there; both keep the ErrorListener imports there, without the two imports #803 removed. #693's 29029a8 also has errs' getJitICType() hunk, resolved the same way. The rebase broke javatools' compile without a conflict: #803's three new newable checks say ErrorListener.BLACKHOLE, which errs no longer has. The commit that removes BLACKHOLE (errs e2e53f3, #693 1ddea3e) now also makes those checks say silent(PROBE), so that every commit after it compiles, as javatools' compileJava there and halfway to the tip shows on both branches; the commit before this one (#693 ef37030) drops TypeConstant's import of PROBE, whose only use went with getJitICType(). The two tables' new commits are those of this history. Checks: - Outside the 83 files master's nine commits changed, both rebased trees are identical to the trees they were rebased from (60d36426eb, 49b5f8a). Each of the ten files that master and the branches both changed equals a three-way merge of the old tree's file and master's, except TypeConstant.java, whose two conflicts are the ones above. - errs' and #693's code is identical: git diff of the two heads outside doc/errs, *.md and lang/doc/plans is empty. - On errs, after :xdk:installDist: :javatools:test 648 tests, 0 failures, 42 skipped (all @disabled, Windows-only or RUN_INTEGRATION_TESTS); :plugin:validatePlugins, and :plugin:test 83, 0 failures, 14 skipped; :xdk:testXtc, which has no test modules of its own, and the XDK's two, :xdk:lib-json:testXtc (179 passed) and :xdk:lib-metrics:testXtc (4 passed); :lang:lsp-server:test with -PlspTests=default 2593, 0 failures, 773 skipped (the default tier's later parameterized cases); :lang:intellij-plugin:test 233, 0 failures, 0 skipped, and compileIntegrationTestKotlin; :lang:dap-server:test 61, 0 failures, 0 skipped. spotlessCheck passes and git status is clean.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…the helper that chose a listener for them Master's #803 added TypeInfo.isNewable(boolean), a helper that called isNewable(boolean, ErrorListener) with a listener of its own choosing (ErrorListener.BLACKHOLE, silent(PROBE) since the rebase), for the JIT code's newable checks. errs' other checks of a type's newability pass their listener explicitly, isNewable(false, silent(PROBE)) (TypeInfoReal, xRTType, and #803's checks in TerminalTypeConstant and ParameterizedTypeConstant since the rebase), as a call site states why it is silent rather than a helper defaulting it. The helper's six callers, in VirtualChildTypeConstant, AbstractDependantChildTypeConstant, CastTypeConstant (three) and IntersectionTypeConstant, now say isNewable(false, silent(PROBE)) too, and the helper and TypeInfo's imports that only it used are gone. AnnotatedTypeConstant's jitInfo.isNewable() is JitInfo's own and unchanged. No behavior changes. Validated: :javatools:test --rerun, 648 tests, 0 failures, 42 skipped (disabled, platform-specific or RUN_INTEGRATION_TESTS), from fresh JUnit XML; :javatools_jitbridge:compileJava; spotlessCheck passes and leaves the tree as committed.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…the helper that chose a listener for them Master's #803 added TypeInfo.isNewable(boolean), a helper that called isNewable(boolean, ErrorListener) with a listener of its own choosing (ErrorListener.BLACKHOLE, silent(PROBE) since the rebase), for the JIT code's newable checks. errs' other checks of a type's newability pass their listener explicitly, isNewable(false, silent(PROBE)) (TypeInfoReal, xRTType, and #803's checks in TerminalTypeConstant and ParameterizedTypeConstant since the rebase), as a call site states why it is silent rather than a helper defaulting it. The helper's six callers, in VirtualChildTypeConstant, AbstractDependantChildTypeConstant, CastTypeConstant (three) and IntersectionTypeConstant, now say isNewable(false, silent(PROBE)) too, and the helper and TypeInfo's imports that only it used are gone. AnnotatedTypeConstant's jitInfo.isNewable() is JitInfo's own and unchanged. No behavior changes. Validated: :javatools:test --rerun, 648 tests, 0 failures, 42 skipped (disabled, platform-specific or RUN_INTEGRATION_TESTS), from fresh JUnit XML; :javatools_jitbridge:compileJava; spotlessCheck passes and leaves the tree as committed.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…, to diagnostics-embedding Docs only: the commit after the rebase that makes #803's newable checks pass silent(PROBE) and drops the helper that chose a listener; to fold into position 3 with 468 when that unit is cut.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
PROBE and BLACKHOLE were constants and suppressCascade() was an instance method,
so the same idea read three different ways. The asymmetry was not arbitrary - 76
of the 160 probe sites have no listener in scope at all, so a probe cannot always
be derived from one - but that reason was invisible, which left it looking like
inconsistency.
There is now one concept and two entry points that differ only by whether the
caller has a listener to derive from:
silent(why) // no listener: a shared constant per reason
errs.silence(why) // a listener: a wrapper that keeps it reachable
Silence names the three reasons - PROBE, CASCADE, DISCARD - and silenceReason()
gives one back, so a host republishing diagnostics can finally tell a probe from
a cascade. That distinction is the point: a probe's diagnostics are worthless to
everyone, whereas a cascade's are real diagnostics that happen to be fallout, and
an editor may want them as related information for the one that matters.
CascadeErrorListener and the old SilentErrorListener collapse into one class
carrying the reason. Behaviour is unchanged throughout - all three still discard,
still answer isSilent(), and nothing branches on which is held - and the whole
XDK compiles to byte-identical modules, all 22 of them, with the timestamp masked.
Rebased onto master 8b5257f on 2026-11-25: the three newable checks that master's #803 added said
ErrorListener.BLACKHOLE; they say silent(PROBE), as the probes here do.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
- Require explicit compiler listeners and reasons for silence. - Document listener ownership and demonstrate host regressions. - Clarify listener nullability and add standalone silence constructor. - Remove unnecessary wrapping from TypeInfo listener calls. - Use one shared compiler error budget for default listeners. - Reuse silent listeners within related compiler checks. - Describe listener regression baseline without internal slice labels. The migration includes master's embedded run code: InterpreterControl's entry-method reports use errs.error and errs.warn, and EmbeddingSupport keeps master's runMethod, with its entry point and console input, beside run. Validation: the touched builds compile. The suites and the playbooks ran on the last commit of this series. Rebased onto master 8b5257f on 2026-11-25: the three newable checks that master's #803 added said ErrorListener.BLACKHOLE; they say silent(PROBE), as the probes here do.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
… getJitICType() Master's #803 removed TypeConstant.getJitICType(), the import's only user; the rebase onto it left the import unused. Its newable checks say silent(PROBE) from the commit that removed ErrorListener.BLACKHOLE on, so every commit of the rebased history compiles.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…the helper that chose a listener for them Master's #803 added TypeInfo.isNewable(boolean), a helper that called isNewable(boolean, ErrorListener) with a listener of its own choosing (ErrorListener.BLACKHOLE, silent(PROBE) since the rebase), for the JIT code's newable checks. errs' other checks of a type's newability pass their listener explicitly, isNewable(false, silent(PROBE)) (TypeInfoReal, xRTType, and #803's checks in TerminalTypeConstant and ParameterizedTypeConstant since the rebase), as a call site states why it is silent rather than a helper defaulting it. The helper's six callers, in VirtualChildTypeConstant, AbstractDependantChildTypeConstant, CastTypeConstant (three) and IntersectionTypeConstant, now say isNewable(false, silent(PROBE)) too, and the helper and TypeInfo's imports that only it used are gone. AnnotatedTypeConstant's jitInfo.isNewable() is JitInfo's own and unchanged. No behavior changes. Validated: :javatools:test --rerun, 648 tests, 0 failures, 42 skipped (disabled, platform-specific or RUN_INTEGRATION_TESTS), from fresh JUnit XML; :javatools_jitbridge:compileJava; spotlessCheck passes and leaves the tree as committed.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
… getJitICType() Master's #803 removed TypeConstant.getJitICType(), the import's only user; the rebase onto it left the import unused. Its newable checks say silent(PROBE) from the commit that removed ErrorListener.BLACKHOLE on, so every commit of the rebased history compiles.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
- Require explicit compiler listeners and reasons for silence. - Document listener ownership and demonstrate host regressions. - Clarify listener nullability and add standalone silence constructor. - Remove unnecessary wrapping from TypeInfo listener calls. - Use one shared compiler error budget for default listeners. - Reuse silent listeners within related compiler checks. - Describe listener regression baseline without internal slice labels. The migration includes master's embedded run code: InterpreterControl's entry-method reports use errs.error and errs.warn, and EmbeddingSupport keeps master's runMethod, with its entry point and console input, beside run. Validation: the touched builds compile. The suites and the playbooks ran on the last commit of this series. Rebased onto master 8b5257f on 2026-11-25: the three newable checks that master's #803 added said ErrorListener.BLACKHOLE; they say silent(PROBE), as the probes here do.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
… getJitICType() Master's #803 removed TypeConstant.getJitICType(), the import's only user; the rebase onto it left the import unused. Its newable checks say silent(PROBE) from the commit that removed ErrorListener.BLACKHOLE on, so every commit of the rebased history compiles.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…the helper that chose a listener for them Master's #803 added TypeInfo.isNewable(boolean), a helper that called isNewable(boolean, ErrorListener) with a listener of its own choosing (ErrorListener.BLACKHOLE, silent(PROBE) since the rebase), for the JIT code's newable checks. errs' other checks of a type's newability pass their listener explicitly, isNewable(false, silent(PROBE)) (TypeInfoReal, xRTType, and #803's checks in TerminalTypeConstant and ParameterizedTypeConstant since the rebase), as a call site states why it is silent rather than a helper defaulting it. The helper's six callers, in VirtualChildTypeConstant, AbstractDependantChildTypeConstant, CastTypeConstant (three) and IntersectionTypeConstant, now say isNewable(false, silent(PROBE)) too, and the helper and TypeInfo's imports that only it used are gone. AnnotatedTypeConstant's jitInfo.isNewable() is JitInfo's own and unchanged. No behavior changes. Validated: :javatools:test --rerun, 648 tests, 0 failures, 42 skipped (disabled, platform-specific or RUN_INTEGRATION_TESTS), from fresh JUnit XML; :javatools_jitbridge:compileJava; spotlessCheck passes and leaves the tree as committed.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
PROBE and BLACKHOLE were constants and suppressCascade() was an instance method,
so the same idea read three different ways. The asymmetry was not arbitrary - 76
of the 160 probe sites have no listener in scope at all, so a probe cannot always
be derived from one - but that reason was invisible, which left it looking like
inconsistency.
There is now one concept and two entry points that differ only by whether the
caller has a listener to derive from:
silent(why) // no listener: a shared constant per reason
errs.silence(why) // a listener: a wrapper that keeps it reachable
Silence names the three reasons - PROBE, CASCADE, DISCARD - and silenceReason()
gives one back, so a host republishing diagnostics can finally tell a probe from
a cascade. That distinction is the point: a probe's diagnostics are worthless to
everyone, whereas a cascade's are real diagnostics that happen to be fallout, and
an editor may want them as related information for the one that matters.
CascadeErrorListener and the old SilentErrorListener collapse into one class
carrying the reason. Behaviour is unchanged throughout - all three still discard,
still answer isSilent(), and nothing branches on which is held - and the whole
XDK compiles to byte-identical modules, all 22 of them, with the timestamp masked.
Rebased onto master 8b5257f on 2026-11-25: the three newable checks that master's #803 added said
ErrorListener.BLACKHOLE; they say silent(PROBE), as the probes here do.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
… getJitICType() Master's #803 removed TypeConstant.getJitICType(), the import's only user; the rebase onto it left the import unused. Its newable checks say silent(PROBE) from the commit that removed ErrorListener.BLACKHOLE on, so every commit of the rebased history compiles.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
Both branches were backed up as backup/lagergren-errs-2026-11-25 (c8c6d6f) and backup/693-2026-11-25 (49b5f8a), and tags of those names, then rebased onto master's 8b5257f, past #792, #798 (Gradle 9.9.2), #797, #796, #799, #800, #790, #793 and #803 (the JIT milestone's JitInfo). errs-rebase-2026-11-25.tsv maps errs' 1746 commits (from 60d36426eb, the remote's c8c6d6f with the commit that aligns errs' code to #693's): 1739 replayed, six with a resolved conflict, and a2e343c dropped, which master has as #800. errs-693-rebase-2026-11-25.tsv maps #693's 468 (from 49b5f8a): 466 replayed, one resolved, and its #800 copy 09e61bd dropped. Every conflict was in TypeConstant.java, where #803 moved the JIT class names into JitInfo, removing getJitCCType(), getJitICType() and the CD_Class and CD_Ctx imports. Each is resolved keeping master's change and the branch's: - errs' 1a5a748, 3f272ef, 7becf17, a500b09 and ac92dcf edit getJitICType()'s assert (its listener, BLACKHOLE to PROBE to silent(PROBE)) or the two methods' javadoc. Those methods are gone, so those hunks keep master's side; the commits' other changes apply. - errs' 23faf03 moves the ErrorListener static imports up beside CD_Class and CD_Ctx, and #693's 29029a8 adds them there; both keep the ErrorListener imports there, without the two imports #803 removed. #693's 29029a8 also has errs' getJitICType() hunk, resolved the same way. The rebase broke javatools' compile without a conflict: #803's three new newable checks say ErrorListener.BLACKHOLE, which errs no longer has. The commit that removes BLACKHOLE (errs e2e53f3, #693 1ddea3e) now also makes those checks say silent(PROBE), so that every commit after it compiles, as javatools' compileJava there and halfway to the tip shows on both branches; the commit before this one (#693 ef37030) drops TypeConstant's import of PROBE, whose only use went with getJitICType(). The two tables' new commits are those of this history. Checks: - Outside the 83 files master's nine commits changed, both rebased trees are identical to the trees they were rebased from (60d36426eb, 49b5f8a). Each of the ten files that master and the branches both changed equals a three-way merge of the old tree's file and master's, except TypeConstant.java, whose two conflicts are the ones above. - errs' and #693's code is identical: git diff of the two heads outside doc/errs, *.md and lang/doc/plans is empty. - On errs, after :xdk:installDist: :javatools:test 648 tests, 0 failures, 42 skipped (all @disabled, Windows-only or RUN_INTEGRATION_TESTS); :plugin:validatePlugins, and :plugin:test 83, 0 failures, 14 skipped; :xdk:testXtc, which has no test modules of its own, and the XDK's two, :xdk:lib-json:testXtc (179 passed) and :xdk:lib-metrics:testXtc (4 passed); :lang:lsp-server:test with -PlspTests=default 2593, 0 failures, 773 skipped (the default tier's later parameterized cases); :lang:intellij-plugin:test 233, 0 failures, 0 skipped, and compileIntegrationTestKotlin; :lang:dap-server:test 61, 0 failures, 0 skipped. spotlessCheck passes and git status is clean.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…#693 Docs only. The map was built at #693's 49b5f8a on 535e80f; after the rebase onto master's 8b5257f, #693 is ef37030. Each row now has the commit's new position and hash, with the old ones beside them, through errs-693-rebase-2026-11-25.tsv: old position 405, #800's copy, which master has, is marked dropped, and position 468, the rebase's removal of an import that #803 left unused in TypeConstant, is added to diagnostics-embedding, to fold into position 3 when that unit is cut. The roadmap's map section and GitHub state name the new head. Checked: 468 positioned rows, positions 1-468 each once, every commit of origin/master..ef37030 in the table.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…the helper that chose a listener for them Master's #803 added TypeInfo.isNewable(boolean), a helper that called isNewable(boolean, ErrorListener) with a listener of its own choosing (ErrorListener.BLACKHOLE, silent(PROBE) since the rebase), for the JIT code's newable checks. errs' other checks of a type's newability pass their listener explicitly, isNewable(false, silent(PROBE)) (TypeInfoReal, xRTType, and #803's checks in TerminalTypeConstant and ParameterizedTypeConstant since the rebase), as a call site states why it is silent rather than a helper defaulting it. The helper's six callers, in VirtualChildTypeConstant, AbstractDependantChildTypeConstant, CastTypeConstant (three) and IntersectionTypeConstant, now say isNewable(false, silent(PROBE)) too, and the helper and TypeInfo's imports that only it used are gone. AnnotatedTypeConstant's jitInfo.isNewable() is JitInfo's own and unchanged. No behavior changes. Validated: :javatools:test --rerun, 648 tests, 0 failures, 42 skipped (disabled, platform-specific or RUN_INTEGRATION_TESTS), from fresh JUnit XML; :javatools_jitbridge:compileJava; spotlessCheck passes and leaves the tree as committed.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…, to diagnostics-embedding Docs only: the commit after the rebase that makes #803's newable checks pass silent(PROBE) and drops the helper that chose a listener; to fold into position 3 with 468 when that unit is cut.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
- Require explicit compiler listeners and reasons for silence. - Document listener ownership and demonstrate host regressions. - Clarify listener nullability and add standalone silence constructor. - Remove unnecessary wrapping from TypeInfo listener calls. - Use one shared compiler error budget for default listeners. - Reuse silent listeners within related compiler checks. - Describe listener regression baseline without internal slice labels. The migration includes master's embedded run code: InterpreterControl's entry-method reports use errs.error and errs.warn, and EmbeddingSupport keeps master's runMethod, with its entry point and console input, beside run. Validation: the touched builds compile. The suites and the playbooks ran on the last commit of this series. Rebased onto master 8b5257f on 2026-11-25: the three newable checks that master's #803 added said ErrorListener.BLACKHOLE; they say silent(PROBE), as the probes here do.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
PROBE and BLACKHOLE were constants and suppressCascade() was an instance method,
so the same idea read three different ways. The asymmetry was not arbitrary - 76
of the 160 probe sites have no listener in scope at all, so a probe cannot always
be derived from one - but that reason was invisible, which left it looking like
inconsistency.
There is now one concept and two entry points that differ only by whether the
caller has a listener to derive from:
silent(why) // no listener: a shared constant per reason
errs.silence(why) // a listener: a wrapper that keeps it reachable
Silence names the three reasons - PROBE, CASCADE, DISCARD - and silenceReason()
gives one back, so a host republishing diagnostics can finally tell a probe from
a cascade. That distinction is the point: a probe's diagnostics are worthless to
everyone, whereas a cascade's are real diagnostics that happen to be fallout, and
an editor may want them as related information for the one that matters.
CascadeErrorListener and the old SilentErrorListener collapse into one class
carrying the reason. Behaviour is unchanged throughout - all three still discard,
still answer isSilent(), and nothing branches on which is held - and the whole
XDK compiles to byte-identical modules, all 22 of them, with the timestamp masked.
Rebased onto master 8b5257f on 2026-11-25: the three newable checks that master's #803 added said
ErrorListener.BLACKHOLE; they say silent(PROBE), as the probes here do.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
… getJitICType() Master's #803 removed TypeConstant.getJitICType(), the import's only user; the rebase onto it left the import unused. Its newable checks say silent(PROBE) from the commit that removed ErrorListener.BLACKHOLE on, so every commit of the rebased history compiles.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…the helper that chose a listener for them Master's #803 added TypeInfo.isNewable(boolean), a helper that called isNewable(boolean, ErrorListener) with a listener of its own choosing (ErrorListener.BLACKHOLE, silent(PROBE) since the rebase), for the JIT code's newable checks. errs' other checks of a type's newability pass their listener explicitly, isNewable(false, silent(PROBE)) (TypeInfoReal, xRTType, and #803's checks in TerminalTypeConstant and ParameterizedTypeConstant since the rebase), as a call site states why it is silent rather than a helper defaulting it. The helper's six callers, in VirtualChildTypeConstant, AbstractDependantChildTypeConstant, CastTypeConstant (three) and IntersectionTypeConstant, now say isNewable(false, silent(PROBE)) too, and the helper and TypeInfo's imports that only it used are gone. AnnotatedTypeConstant's jitInfo.isNewable() is JitInfo's own and unchanged. No behavior changes. Validated: :javatools:test --rerun, 648 tests, 0 failures, 42 skipped (disabled, platform-specific or RUN_INTEGRATION_TESTS), from fresh JUnit XML; :javatools_jitbridge:compileJava; spotlessCheck passes and leaves the tree as committed.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
… getJitICType() Master's #803 removed TypeConstant.getJitICType(), the import's only user; the rebase onto it left the import unused. Its newable checks say silent(PROBE) from the commit that removed ErrorListener.BLACKHOLE on, so every commit of the rebased history compiles.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
Both branches were backed up as backup/lagergren-errs-2026-11-25 (c8c6d6f) and backup/693-2026-11-25 (49b5f8a), and tags of those names, then rebased onto master's 8b5257f, past #792, #798 (Gradle 9.9.2), #797, #796, #799, #800, #790, #793 and #803 (the JIT milestone's JitInfo). errs-rebase-2026-11-25.tsv maps errs' 1746 commits (from 60d36426eb, the remote's c8c6d6f with the commit that aligns errs' code to #693's): 1739 replayed, six with a resolved conflict, and a2e343c dropped, which master has as #800. errs-693-rebase-2026-11-25.tsv maps #693's 468 (from 49b5f8a): 466 replayed, one resolved, and its #800 copy 09e61bd dropped. Every conflict was in TypeConstant.java, where #803 moved the JIT class names into JitInfo, removing getJitCCType(), getJitICType() and the CD_Class and CD_Ctx imports. Each is resolved keeping master's change and the branch's: - errs' 1a5a748, 3f272ef, 7becf17, a500b09 and ac92dcf edit getJitICType()'s assert (its listener, BLACKHOLE to PROBE to silent(PROBE)) or the two methods' javadoc. Those methods are gone, so those hunks keep master's side; the commits' other changes apply. - errs' 23faf03 moves the ErrorListener static imports up beside CD_Class and CD_Ctx, and #693's 29029a8 adds them there; both keep the ErrorListener imports there, without the two imports #803 removed. #693's 29029a8 also has errs' getJitICType() hunk, resolved the same way. The rebase broke javatools' compile without a conflict: #803's three new newable checks say ErrorListener.BLACKHOLE, which errs no longer has. The commit that removes BLACKHOLE (errs e2e53f3, #693 1ddea3e) now also makes those checks say silent(PROBE), so that every commit after it compiles, as javatools' compileJava there and halfway to the tip shows on both branches; the commit before this one (#693 ef37030) drops TypeConstant's import of PROBE, whose only use went with getJitICType(). The two tables' new commits are those of this history. Checks: - Outside the 83 files master's nine commits changed, both rebased trees are identical to the trees they were rebased from (60d36426eb, 49b5f8a). Each of the ten files that master and the branches both changed equals a three-way merge of the old tree's file and master's, except TypeConstant.java, whose two conflicts are the ones above. - errs' and #693's code is identical: git diff of the two heads outside doc/errs, *.md and lang/doc/plans is empty. - On errs, after :xdk:installDist: :javatools:test 648 tests, 0 failures, 42 skipped (all @disabled, Windows-only or RUN_INTEGRATION_TESTS); :plugin:validatePlugins, and :plugin:test 83, 0 failures, 14 skipped; :xdk:testXtc, which has no test modules of its own, and the XDK's two, :xdk:lib-json:testXtc (179 passed) and :xdk:lib-metrics:testXtc (4 passed); :lang:lsp-server:test with -PlspTests=default 2593, 0 failures, 773 skipped (the default tier's later parameterized cases); :lang:intellij-plugin:test 233, 0 failures, 0 skipped, and compileIntegrationTestKotlin; :lang:dap-server:test 61, 0 failures, 0 skipped. spotlessCheck passes and git status is clean.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…#693 Docs only. The map was built at #693's 49b5f8a on 535e80f; after the rebase onto master's 8b5257f, #693 is ef37030. Each row now has the commit's new position and hash, with the old ones beside them, through errs-693-rebase-2026-11-25.tsv: old position 405, #800's copy, which master has, is marked dropped, and position 468, the rebase's removal of an import that #803 left unused in TypeConstant, is added to diagnostics-embedding, to fold into position 3 when that unit is cut. The roadmap's map section and GitHub state name the new head. Checked: 468 positioned rows, positions 1-468 each once, every commit of origin/master..ef37030 in the table.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…the helper that chose a listener for them Master's #803 added TypeInfo.isNewable(boolean), a helper that called isNewable(boolean, ErrorListener) with a listener of its own choosing (ErrorListener.BLACKHOLE, silent(PROBE) since the rebase), for the JIT code's newable checks. errs' other checks of a type's newability pass their listener explicitly, isNewable(false, silent(PROBE)) (TypeInfoReal, xRTType, and #803's checks in TerminalTypeConstant and ParameterizedTypeConstant since the rebase), as a call site states why it is silent rather than a helper defaulting it. The helper's six callers, in VirtualChildTypeConstant, AbstractDependantChildTypeConstant, CastTypeConstant (three) and IntersectionTypeConstant, now say isNewable(false, silent(PROBE)) too, and the helper and TypeInfo's imports that only it used are gone. AnnotatedTypeConstant's jitInfo.isNewable() is JitInfo's own and unchanged. No behavior changes. Validated: :javatools:test --rerun, 648 tests, 0 failures, 42 skipped (disabled, platform-specific or RUN_INTEGRATION_TESTS), from fresh JUnit XML; :javatools_jitbridge:compileJava; spotlessCheck passes and leaves the tree as committed.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
…, to diagnostics-embedding Docs only: the commit after the rebase that makes #803's newable checks pass silent(PROBE) and drops the helper that chose a listener; to fold into position 3 with 468 when that unit is cut.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
- Require explicit compiler listeners and reasons for silence. - Document listener ownership and demonstrate host regressions. - Clarify listener nullability and add standalone silence constructor. - Remove unnecessary wrapping from TypeInfo listener calls. - Use one shared compiler error budget for default listeners. - Reuse silent listeners within related compiler checks. - Describe listener regression baseline without internal slice labels. The migration includes master's embedded run code: InterpreterControl's entry-method reports use errs.error and errs.warn, and EmbeddingSupport keeps master's runMethod, with its entry point and console input, beside run. Validation: the touched builds compile. The suites and the playbooks ran on the last commit of this series. Rebased onto master 8b5257f on 2026-11-25: the three newable checks that master's #803 added said ErrorListener.BLACKHOLE; they say silent(PROBE), as the probes here do.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
… getJitICType() Master's #803 removed TypeConstant.getJitICType(), the import's only user; the rebase onto it left the import unused. Its newable checks say silent(PROBE) from the commit that removed ErrorListener.BLACKHOLE on, so every commit of the rebased history compiles.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…the helper that chose a listener for them Master's #803 added TypeInfo.isNewable(boolean), a helper that called isNewable(boolean, ErrorListener) with a listener of its own choosing (ErrorListener.BLACKHOLE, silent(PROBE) since the rebase), for the JIT code's newable checks. errs' other checks of a type's newability pass their listener explicitly, isNewable(false, silent(PROBE)) (TypeInfoReal, xRTType, and #803's checks in TerminalTypeConstant and ParameterizedTypeConstant since the rebase), as a call site states why it is silent rather than a helper defaulting it. The helper's six callers, in VirtualChildTypeConstant, AbstractDependantChildTypeConstant, CastTypeConstant (three) and IntersectionTypeConstant, now say isNewable(false, silent(PROBE)) too, and the helper and TypeInfo's imports that only it used are gone. AnnotatedTypeConstant's jitInfo.isNewable() is JitInfo's own and unchanged. No behavior changes. Validated: :javatools:test --rerun, 648 tests, 0 failures, 42 skipped (disabled, platform-specific or RUN_INTEGRATION_TESTS), from fresh JUnit XML; :javatools_jitbridge:compileJava; spotlessCheck passes and leaves the tree as committed.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
PROBE and BLACKHOLE were constants and suppressCascade() was an instance method,
so the same idea read three different ways. The asymmetry was not arbitrary - 76
of the 160 probe sites have no listener in scope at all, so a probe cannot always
be derived from one - but that reason was invisible, which left it looking like
inconsistency.
There is now one concept and two entry points that differ only by whether the
caller has a listener to derive from:
silent(why) // no listener: a shared constant per reason
errs.silence(why) // a listener: a wrapper that keeps it reachable
Silence names the three reasons - PROBE, CASCADE, DISCARD - and silenceReason()
gives one back, so a host republishing diagnostics can finally tell a probe from
a cascade. That distinction is the point: a probe's diagnostics are worthless to
everyone, whereas a cascade's are real diagnostics that happen to be fallout, and
an editor may want them as related information for the one that matters.
CascadeErrorListener and the old SilentErrorListener collapse into one class
carrying the reason. Behaviour is unchanged throughout - all three still discard,
still answer isSilent(), and nothing branches on which is held - and the whole
XDK compiles to byte-identical modules, all 22 of them, with the timestamp masked.
Rebased onto master 8b5257f on 2026-11-25: the three newable checks that master's #803 added said
ErrorListener.BLACKHOLE; they say silent(PROBE), as the probes here do.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
… getJitICType() Master's #803 removed TypeConstant.getJitICType(), the import's only user; the rebase onto it left the import unused. Its newable checks say silent(PROBE) from the commit that removed ErrorListener.BLACKHOLE on, so every commit of the rebased history compiles.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
Both branches were backed up as backup/lagergren-errs-2026-11-25 (c8c6d6f) and backup/693-2026-11-25 (49b5f8a), and tags of those names, then rebased onto master's 8b5257f, past #792, #798 (Gradle 9.9.2), #797, #796, #799, #800, #790, #793 and #803 (the JIT milestone's JitInfo). errs-rebase-2026-11-25.tsv maps errs' 1746 commits (from 60d36426eb, the remote's c8c6d6f with the commit that aligns errs' code to #693's): 1739 replayed, six with a resolved conflict, and a2e343c dropped, which master has as #800. errs-693-rebase-2026-11-25.tsv maps #693's 468 (from 49b5f8a): 466 replayed, one resolved, and its #800 copy 09e61bd dropped. Every conflict was in TypeConstant.java, where #803 moved the JIT class names into JitInfo, removing getJitCCType(), getJitICType() and the CD_Class and CD_Ctx imports. Each is resolved keeping master's change and the branch's: - errs' 1a5a748, 3f272ef, 7becf17, a500b09 and ac92dcf edit getJitICType()'s assert (its listener, BLACKHOLE to PROBE to silent(PROBE)) or the two methods' javadoc. Those methods are gone, so those hunks keep master's side; the commits' other changes apply. - errs' 23faf03 moves the ErrorListener static imports up beside CD_Class and CD_Ctx, and #693's 29029a8 adds them there; both keep the ErrorListener imports there, without the two imports #803 removed. #693's 29029a8 also has errs' getJitICType() hunk, resolved the same way. The rebase broke javatools' compile without a conflict: #803's three new newable checks say ErrorListener.BLACKHOLE, which errs no longer has. The commit that removes BLACKHOLE (errs e2e53f3, #693 1ddea3e) now also makes those checks say silent(PROBE), so that every commit after it compiles, as javatools' compileJava there and halfway to the tip shows on both branches; the commit before this one (#693 ef37030) drops TypeConstant's import of PROBE, whose only use went with getJitICType(). The two tables' new commits are those of this history. Checks: - Outside the 83 files master's nine commits changed, both rebased trees are identical to the trees they were rebased from (60d36426eb, 49b5f8a). Each of the ten files that master and the branches both changed equals a three-way merge of the old tree's file and master's, except TypeConstant.java, whose two conflicts are the ones above. - errs' and #693's code is identical: git diff of the two heads outside doc/errs, *.md and lang/doc/plans is empty. - On errs, after :xdk:installDist: :javatools:test 648 tests, 0 failures, 42 skipped (all @disabled, Windows-only or RUN_INTEGRATION_TESTS); :plugin:validatePlugins, and :plugin:test 83, 0 failures, 14 skipped; :xdk:testXtc, which has no test modules of its own, and the XDK's two, :xdk:lib-json:testXtc (179 passed) and :xdk:lib-metrics:testXtc (4 passed); :lang:lsp-server:test with -PlspTests=default 2593, 0 failures, 773 skipped (the default tier's later parameterized cases); :lang:intellij-plugin:test 233, 0 failures, 0 skipped, and compileIntegrationTestKotlin; :lang:dap-server:test 61, 0 failures, 0 skipped. spotlessCheck passes and git status is clean.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…#693 Docs only. The map was built at #693's 49b5f8a on 535e80f; after the rebase onto master's 8b5257f, #693 is ef37030. Each row now has the commit's new position and hash, with the old ones beside them, through errs-693-rebase-2026-11-25.tsv: old position 405, #800's copy, which master has, is marked dropped, and position 468, the rebase's removal of an import that #803 left unused in TypeConstant, is added to diagnostics-embedding, to fold into position 3 when that unit is cut. The roadmap's map section and GitHub state name the new head. Checked: 468 positioned rows, positions 1-468 each once, every commit of origin/master..ef37030 in the table.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…the helper that chose a listener for them Master's #803 added TypeInfo.isNewable(boolean), a helper that called isNewable(boolean, ErrorListener) with a listener of its own choosing (ErrorListener.BLACKHOLE, silent(PROBE) since the rebase), for the JIT code's newable checks. errs' other checks of a type's newability pass their listener explicitly, isNewable(false, silent(PROBE)) (TypeInfoReal, xRTType, and #803's checks in TerminalTypeConstant and ParameterizedTypeConstant since the rebase), as a call site states why it is silent rather than a helper defaulting it. The helper's six callers, in VirtualChildTypeConstant, AbstractDependantChildTypeConstant, CastTypeConstant (three) and IntersectionTypeConstant, now say isNewable(false, silent(PROBE)) too, and the helper and TypeInfo's imports that only it used are gone. AnnotatedTypeConstant's jitInfo.isNewable() is JitInfo's own and unchanged. No behavior changes. Validated: :javatools:test --rerun, 648 tests, 0 failures, 42 skipped (disabled, platform-specific or RUN_INTEGRATION_TESTS), from fresh JUnit XML; :javatools_jitbridge:compileJava; spotlessCheck passes and leaves the tree as committed.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
…, to diagnostics-embedding Docs only: the commit after the rebase that makes #803's newable checks pass silent(PROBE) and drops the helper that chose a listener; to fold into position 3 with 468 when that unit is cut.
lagergren
added a commit
that referenced
this pull request
Nov 29, 2026
- Require explicit compiler listeners and reasons for silence. - Document listener ownership and demonstrate host regressions. - Clarify listener nullability and add standalone silence constructor. - Remove unnecessary wrapping from TypeInfo listener calls. - Use one shared compiler error budget for default listeners. - Reuse silent listeners within related compiler checks. - Describe listener regression baseline without internal slice labels. The migration includes master's embedded run code: InterpreterControl's entry-method reports use errs.error and errs.warn, and EmbeddingSupport keeps master's runMethod, with its entry point and console input, beside run. Validation: the touched builds compile. The suites and the playbooks ran on the last commit of this series. Rebased onto master 8b5257f on 2026-11-25: the three newable checks that master's #803 added said ErrorListener.BLACKHOLE; they say silent(PROBE), as the probes here do.
lagergren
added a commit
that referenced
this pull request
Nov 29, 2026
… getJitICType() Master's #803 removed TypeConstant.getJitICType(), the import's only user; the rebase onto it left the import unused. Its newable checks say silent(PROBE) from the commit that removed ErrorListener.BLACKHOLE on, so every commit of the rebased history compiles.
lagergren
added a commit
that referenced
this pull request
Nov 29, 2026
…the helper that chose a listener for them Master's #803 added TypeInfo.isNewable(boolean), a helper that called isNewable(boolean, ErrorListener) with a listener of its own choosing (ErrorListener.BLACKHOLE, silent(PROBE) since the rebase), for the JIT code's newable checks. errs' other checks of a type's newability pass their listener explicitly, isNewable(false, silent(PROBE)) (TypeInfoReal, xRTType, and #803's checks in TerminalTypeConstant and ParameterizedTypeConstant since the rebase), as a call site states why it is silent rather than a helper defaulting it. The helper's six callers, in VirtualChildTypeConstant, AbstractDependantChildTypeConstant, CastTypeConstant (three) and IntersectionTypeConstant, now say isNewable(false, silent(PROBE)) too, and the helper and TypeInfo's imports that only it used are gone. AnnotatedTypeConstant's jitInfo.isNewable() is JitInfo's own and unchanged. No behavior changes. Validated: :javatools:test --rerun, 648 tests, 0 failures, 42 skipped (disabled, platform-specific or RUN_INTEGRATION_TESTS), from fresh JUnit XML; :javatools_jitbridge:compileJava; spotlessCheck passes and leaves the tree as committed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.