Skip to content

[jni] Remove hack in findClass and fix call sites#3180

Open
imshubham22apr-gif wants to merge 1 commit intodart-lang:jni_extension_typesfrom
imshubham22apr-gif:fix-findclass-hack
Open

[jni] Remove hack in findClass and fix call sites#3180
imshubham22apr-gif wants to merge 1 commit intodart-lang:jni_extension_typesfrom
imshubham22apr-gif:fix-findclass-hack

Conversation

@imshubham22apr-gif
Copy link

Description

This PR removes the temporary hack in Jni.findClass that was stripping 'L' and ';' from class signatures. To support this, I've updated JType.jClass to handle the signature stripping instead, ensuring that only binary class names are passed for lookup.

Related Issues

Fixes #3174

PR Checklist

  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
  • I've run dart tool/ci.dart --all locally.
  • All existing and new tests are passing.
  • The PR is actually solving the issue.
  • I have updated CHANGELOG.md for the relevant packages.
  • I have updated the pubspec package version if necessary.

@liamappelbe
Copy link
Contributor

@imshubham22apr-gif #3174 is a follow up to a PR that hasn't landed yet. Please wait for that to land before you try to fix it.

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.

2 participants