Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bridj (0.7-SNAPSHOT) Native method overriden in CPPObject broken #534

Copy link
Copy link
@obethery

Description

@obethery
Issue body actions

Sometimes, Java callback from CPP invocation (override a native method with a non-native method in a class extending CPPObject ) throws NullPointerException because BridJ.getJavaObjectForNativePointer return null in native code (CPPToJavaCallHandler_Sub)

getJavaObjectForNativePointer try to find a NativeObject instance in a WeakHashMap<Long,NativeObject> (knownNativeObjects field in BridJ). It's odd to use Long as weak key. They are garbaged very quickly so a null pointer is thrown because NativeObject instance couldn't be found.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.