mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
bind: initialize JNI library on any class load
With the introduction of constructors Java side, all types become entry points into the library. However the library was only initialized by the main class until now, resulting in all other constructors hitting linker errors until an interaction with the main library class. This CL fixes that by changing each generated type to touch the main library class, ensuring that the underlying native library is loaded. Change-Id: I640d1dc329e072f8d0753f74ccce87cd9e5aaea8 Reviewed-on: https://go-review.googlesource.com/29994 Reviewed-by: Elias Naur <elias.naur@gmail.com>
This commit is contained in:
committed by
Elias Naur
parent
9640137a86
commit
1663ffa95c
Vendored
+1
-1
@@ -7,7 +7,7 @@ package go.issue12328;
|
||||
import go.Seq;
|
||||
|
||||
public final class T extends Seq.Proxy {
|
||||
{ Seq.touch(); }
|
||||
static { Issue12328.touch(); }
|
||||
|
||||
T(Seq.Ref ref) { super(ref); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user