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

Jasmine: Impossible to invoke static methods without object instantiation #6

Open
roozbehf opened this issue Dec 6, 2012 · 0 comments
Assignees

Comments

@roozbehf
Copy link
Member

roozbehf commented Dec 6, 2012

Invoking static methods requires that a JObject value of the target class be instantiated first, which should not be needed.

For example, to invoke the static method java.util.UUID.randomUUID(), one has to first create a UUID object:

import native java.util.UUID(1, 2) into xy
invoke xy->randomUUID() result into id

Perhaps we can have an invoke static that gets a full Java class name, instead of the JObject term, such that one can write:

invoke static java.util.UUID->randomUUID() result into id
@ghost ghost assigned roozbehf Dec 6, 2012
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