commit | 8d61b3bae7ba4e3856fe539dd978704cb8c5af41 | [log] [tgz] |
---|---|---|
author | Razvan Musaloiu-E <razvanm@google.com> | Tue May 24 12:04:29 2016 -0700 |
committer | Razvan Musaloiu-E. <razvanm@google.com> | Fri May 27 04:30:39 2016 +0000 |
tree | 801accd043de5d9616b1e87cecba6e4ddf0260c4 | |
parent | b7d7d83b067a8ab270b43a0e7b8cab10bd278a71 [diff] |
java: Hook and test the Service.ListDatabases and Database.Create The listing of databases doesn't work properly so the test doesn't attempt to list the databases after creating a database. This change also adds the caching of appropriate class/method/field IDs for a few classes (ArrayListClass, Id and VError). The code doing that is isolated in the jni_lib.go file. This change also adds a bunch of utility functions to talk to JNI and to convert from v23_syncbase_* to Java equivalents. The code is isolated in the jni_util.go file. Note on V23SStringToJString: I initially wanted to write a Go unit test but manufacturing a C.JNIEnv or bringing up an entire JVM are both untractive options. MultiPart: 2/2 Change-Id: I2c36eddb8015211dd67211a7dbbd700b2294aa49
This repository contains a reference implementation of the Vanadium APIs.
Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.