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

Ensure Java Wrapper 'metaclasses' are correct #3

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

Ensure Java Wrapper 'metaclasses' are correct #3

mattys101 opened this issue Nov 8, 2017 · 0 comments

Comments

@mattys101
Copy link
Owner

The Java wrappers javaClass metaclass pattern should match that of Smalltalk.
We should ensure the following:

stringInstance := Java for: 'java.lang.String'.
stringClass := stringInstance javaClass.        "=> JavaClass for: 'java.lang.String' "
stringMetaClass := stringClass javaClass.     "=> Java for: 'java.lang.Class<java.lang.String>' "
metaMetaClass := stringMetaClass javaClass.    "=> JavaClass for: 'java.lang.Class<java.lang.Class>' "
metaMetaMetaClass := metaMetaClass javaClass. "=> Java for: 'java.lang.Class<java.lang.Class>' " 
"further calls to javaClass just keep providing the same"

This is analogous to:

'string instance' -> String class -> String metaclass -> Metaclass class -> Metaclass metaclass -> Metaclass class
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