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

Avoid use of string (System.String) and prefer Java.Lang.String #363

Closed
masesdevelopers opened this issue Feb 12, 2024 · 1 comment · Fixed by #364
Closed

Avoid use of string (System.String) and prefer Java.Lang.String #363

masesdevelopers opened this issue Feb 12, 2024 · 1 comment · Fixed by #364
Assignees
Labels
enhancement New feature or request JNetReflector JNetReflector related issue

Comments

@masesdevelopers
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently JNetReflector use string (System.String) to reflect Java.Lang.String, however to better cover JVM types the Java.Lang.String type is better. The corresponding .NET string (System.String) type is managed from implicit converters.

Describe the solution you'd like
Remove the conversion to .NET string (System.String) and prefer Java.Lang.String instead.

Describe alternatives you've considered
N/A

Additional context
N/A

@masesdevelopers
Copy link
Contributor Author

This issue can extended using native types only when JVM counter-part is a native type, otherwise use the JVM class.
Some examples are:

  • bool when there is a JVM boolean, otherwise use Java.Lang.Boolean which can be managed like a Nullable type in .NET withbool?
  • int when there is a JVM int, otherwise use Java.Lang.Integer which can be managed like a Nullable type in .NET withint?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request JNetReflector JNetReflector related issue
Projects
None yet
1 participant