Skip to content

Value-based class used as a key in WeakHashMap #60220

Open

Description

@Yqwed

Description

ReactProgressBarViewManager.measuresStyles is an instance of WeakHashMap<Integer, ....

After JEP-401 that will throw IdentityException. Please address that. Also, as only [-128;128) are cached, these keys could be reclaimed by GC immediately.

I think @Suppress("IDENTITY_SENSITIVE_OPERATIONS_WITH_VALUE_TYPE") was a mistake too.

Steps to reproduce

Not available publicly.

React Native Version

all versions

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info

None yet

Stacktrace or Logs

None yet

MANDATORY Reproducer

None yet

Screenshots and Videos

No response

Activity

  1. react-native-bot commented on Nov 22, 2026

    @react-native-bot
    Collaborator

    Warning

    Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.

  2. added
    Needs: Repro
    and removed on Nov 22, 2026
  3. react-native-bot commented on Nov 22, 2026

    @react-native-bot
    Collaborator

    Warning

    Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.

  4. react-native-bot commented on Nov 22, 2026

    @react-native-bot
    Collaborator

    Warning

    Missing reproducer: We could not detect a reproducible example in your issue report. Reproducers are mandatory and we can accept only one of those as a valid reproducer:


    You can read more about about it on our website: How to report a bug.

  5. added a commit that references this issue on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackNeeds: ReproNeeds: Version Info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions