google / jni-bind

JNI Bind is a set of advanced syntactic sugar for writing efficient correct JNI Code in C++17 (and up).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add "NewReference" for Global and Local

jwhpryor opened this issue · comments

It's legitimate to want to copy a local or global and this should be supported.

e.g. a syntax like:
LocalObject<kClass> obj { obj, ShallowCopy{} };

This would be very similar to GlobalObject creation as a source for copying implementation from.

can i work on this

Doh, I actually may have taken care of the bulk of this literally earlier today (search for CreateCopy) 🤦🏻‍♂️.

4d059ed

That said, there's actually no meaningful E2E test. That would be both helpful, and probably a good intro to project.

Alternatively, #2 is unlikely to be finished soon, and is likely also a good spot to start.