Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method CastTo introduced a strong limitation #5

Closed
masesdevelopers opened this issue May 14, 2024 · 1 comment
Closed

Method CastTo introduced a strong limitation #5

masesdevelopers opened this issue May 14, 2024 · 1 comment

Comments

@masesdevelopers
Copy link
Contributor

Latest version of JCOBridge introduced a limitation on method CastTo which raises in https://github.com/masesgroup/JNet/blob/4e9f35a0ff0a075ff0adddc79f4042076babf2b1/src/net/JNetReflector/InternalExtensions.cs#L733 the following exception System.InvalidOperationException: java/lang/reflect/Type cannot be converted to java/lang/reflect/ParameterizedType even if the previous test in https://github.com/masesgroup/JNet/blob/4e9f35a0ff0a075ff0adddc79f4042076babf2b1/src/net/JNetReflector/InternalExtensions.cs#L731 passed.

Originally posted by @masesdevelopers in masesgroup/JNet#393 (comment)

CastTo shall consider both conversion direction, not only IsAssignableFrom as reported in the remarks.

@masesdevelopers
Copy link
Contributor Author

Closed with JCOBridge 2.5.13

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

No branches or pull requests

1 participant