Skip to content

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

@roozbehf

Description

@roozbehf

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions