Skip to content

Java standard library support #761

Closed as not planned
Closed as not planned

Description

@dcharkes

We should also have a module which exports important parts of java stdlib, like collections API.

Originally posted by @mahesh-hegde.

If we want to be able to pass objects between different generated bindings, we should make the generated bindings for the standard library reusable and put them in package:jni.

Probably blocked by:

Activity

  1. mahesh-hegde commented on Sep 26, 2022

    @mahesh-hegde
    Contributor

    The java stdlib is quite large. One approach is to only extract the important bits, like ArrayList, and make them common. (We are kind of already doing that with java.lang.String which maps to JniString, it's a small change in generator to do the same with more types).

    Another approach is to figure out the general problem of interop between 2 or more jnigen-generated packages.

    In simple case, we can just list the special-cased type mappings in YAML.

    For larger bindings, maybe generate a JSON file and let typename resolver in generator take care of it?

  2. HosseinYousefi commented on May 22, 2024

    @HosseinYousefi
    Contributor

    Tracked in #746.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions