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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
1.8.5.2.msysgit.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]