Skip to content

Safer varhandle check (part of #752 fix) - #756

Merged
cowtowncoder merged 2 commits into
FasterXML:3.xfrom
pjfanning:cbor-check
Aug 22, 2026
Merged

Safer varhandle check (part of #752 fix)#756
cowtowncoder merged 2 commits into
FasterXML:3.xfrom
pjfanning:cbor-check

Conversation

@pjfanning

@pjfanning pjfanning commented Aug 21, 2026

Copy link
Copy Markdown
Member

On Android, VarHandle class is not available. The CBORVarHandleUtil class is likely not load at all because of the import.
This PR adds a try/catch in the calling code so it can live with CBORVarHandleUtil not being loaded.

Relates to #752

fyi @cowtowncoder

@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown

🧪 Code Coverage Report

Coverage Type Coverage Change
📝 Instructions 76.89% 📉 -0.01%
🔀 Branches 68.38% = 0.00%

@cowtowncoder

cowtowncoder commented Aug 22, 2026

Copy link
Copy Markdown
Member

@pjfanning I wish it was easier to test to know for sure... but just to be safe this seems reasonable. Will do one pass with CC first but will likely merge.

EDIT: claude code review confirms likelihood of hard failure & soundness of fix. Will merge.

@cowtowncoder cowtowncoder changed the title safer varhandle check Safer varhandle check (part of #752 fix) Aug 22, 2026
@cowtowncoder
cowtowncoder merged commit 3b2d65b into FasterXML:3.x Aug 22, 2026
3 checks passed
@pjfanning
pjfanning deleted the cbor-check branch August 22, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants