Skip to content

Record direct class entry calls and predicted returns - #652

Draft
CaelmBleidd wants to merge 3 commits into
caelmbleidd/calls-returned-callable-replayfrom
caelmbleidd/calls-direct-entry-witnesses
Draft

CaelmBleidd wants to merge 3 commits into
caelmbleidd/calls-returned-callable-replayfrom
caelmbleidd/calls-direct-entry-witnesses

Conversation

@CaelmBleidd

Copy link
Copy Markdown
Member

Extends the class probe so a manifest can set recordDirectEntryCalls when observing independently scheduled methods. A successful return carries the predicted value. A fresh call carries the same receiver identity and ordered input-method transcript as the returned-callable journal. Incomplete evidence retains the extraction reason. The flag defaults to false.

The source regression runs the same class with and without recording. It checks argument identity, both successive method arguments and results, a return of 23, exceptional exits, and rejection of an object created in the method. Existing class startup and detached-callable tests also passed on JDK 21 and the pinned frontend. These journal fields describe symbolic observations and do not certify a native execution.

Review after #648.

@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/calls-returned-callable-replay branch from 17da75c to df03782 Compare December 2, 2026 20:07

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

detekt found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/calls-direct-entry-witnesses branch from 37d2cee to 526850b Compare December 2, 2026 20:12
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/calls-direct-entry-witnesses branch from 526850b to ac31b03 Compare December 2, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants