Skip to content

[jnigen] Update kotlin-metadata-jvm - #3297

Merged
liamappelbe merged 6 commits into
mainfrom
jnigen_3269
Apr 14, 2026
Merged

liamappelbe merged 6 commits into
mainfrom
jnigen_3269

Conversation

@liamappelbe

Copy link
Copy Markdown
Contributor

Update to kotlin-metadata-jvm:2.2.0, to fix #3269

This metadata reading package underpins JNIgen's internal API summarizer package. Some of the methods have changed names, but the bigger change is that a bunch of annotations have migrated from being stored in bitmasks (in various flags fields) to just being getters. For example, instead of checking fun.flags for Flag.Function.IS_SUSPEND, we now do Attributes.isSuspend(f). So for the most part I just had to update how our API summarizer package talked to the kotlin metadata pacakge.

There are corresponding flags fields in elements.dart and elements.g.dart, but they appear to be dead code, so I just deleted them.

@github-actions

github-actions Bot commented Apr 9, 2026 •

Copy link
Copy Markdown

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

Breaking changes ✔️
Package Change Current Version New Version Needed Version Looking good?

This check can be disabled by tagging the PR with skip-breaking-check.

API leaks ✔️

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package Leaked API symbol Leaking sources

This check can be disabled by tagging the PR with skip-leaking-check.

@liamappelbe liamappelbe changed the title WIP [jnigen] Update kotlin-metadata-jvm [jnigen] Update kotlin-metadata-jvm Apr 13, 2026
@liamappelbe
liamappelbe requested a review from dcharkes April 13, 2026 02:08
@liamappelbe
liamappelbe marked this pull request as ready for review April 13, 2026 02:09
@liamappelbe
liamappelbe merged commit 98d7797 into main Apr 14, 2026
35 checks passed
@liamappelbe
liamappelbe deleted the jnigen_3269 branch April 14, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade jnigen's kotlinx-metadata-jvm to kotlin-metadata-jvm

2 participants