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

Add mappings between equivalent Smalltalk <-> Java types #6

Open
mattys101 opened this issue Nov 8, 2017 · 0 comments
Open

Add mappings between equivalent Smalltalk <-> Java types #6

mattys101 opened this issue Nov 8, 2017 · 0 comments

Comments

@mattys101
Copy link
Owner

The basic Java Wrapper implementation assumes PrimObjects have a javaValue that can be unwrapped. Moreover, return values are wrapped by instances of Java without taking into account whether an appropriate Smalltalk type exists.

A means of mapping Smalltalk types to java types needs to be included to, in particular, support the appropriate wrapping of basic types when they are provided as return values from calling a Java method. For example:

  • java.lang.String -> smalltalk String
  • int/java.lang.Integer -> smalltalk Integer
  • boolean/java.lang.Boolean -> smalltalk true/false
  • null -> nil
  • etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant