Skip to content

Remove unused code in the interop layers #1255

@filipnavara

Description

@filipnavara

Casual look at the Java.Interop/java-interop projects that there's a lot of code that can be removed since it's no longer used:

  • Any code that supports Java's WeakReference instead of the JNI weak handle. This option is not used anymore but the native code to support it still exists:
    case JAVA_INTEROP_GC_BRIDGE_USE_WEAK_REFERENCE_KIND_JAVA:
    message = "Using java.lang.ref.WeakReference for JNI Weak References.";
    take_global_ref = take_global_ref_java;
    take_weak_global_ref = take_weak_global_ref_java;
    break;
  • java_interop_strdup / java_interop_free

Metadata

Metadata

Assignees

No one assigned

    Labels

    java-interopRuntime bridge between .NET and Java

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions