[libvirt] [libvirt-java] [PATCH 0/2] Fixes for Device.listCapabilities

Claudio Bley cbley at av-test.de
Thu Jan 9 07:34:36 UTC 2014

Let the Device.listCapabilities method return an array filled with
non-null string objects.  Furthermore, the decoding of the character
data does no longer depend upon the default JVM charset.

This also fixes a memleak because the allocated memory was not freed
in the old code.

Patch #2 just adds a unit test which simply uses this function.

Claudio Bley (2):
  Make Device.listCapabilities return only valid array elements
  test: ensure the Device.listCapabilities method works

 src/main/java/org/libvirt/Device.java           | 10 +++++++---
 src/main/java/org/libvirt/jna/Libvirt.java      |  2 +-
 src/test/java/org/libvirt/TestJavaBindings.java | 14 ++++++++++++++
 3 files changed, 22 insertions(+), 4 deletions(-)


More information about the libvir-list mailing list