[libvirt] [PATCH] Network is ported

Bryan Kearney bkearney at redhat.com
Tue Jul 28 14:47:57 UTC 2009


Daniel Veillard wrote:
> On Mon, Jul 27, 2009 at 07:11:39PM -0400, Bryan Kearney wrote:
>> Daniel Veillard wrote:
>>>> diff --git a/src/org/libvirt/Connect.java b/src/org/libvirt/Connect.java
>>>> index bc560d0..b559b52 100644
>>>> --- a/src/org/libvirt/Connect.java
>>>> +++ b/src/org/libvirt/Connect.java
>>>   looks rather simple. Maybe we should have dropped looking by UUID in
>>>   array form and stick only to UUID strings for Java APIs, but it's done
>>>   now.
>>
>> This is what is causing me issues now. I would love to kill this part of  
>> the API.
> 
>   I saw some of the conversion code around, but if we can make it work
> I guess it's better to keep it even if it's a bit cumbersome, maybe
> most of the nastyness can be contained in a specific UUID conversion
> class.
> 
> Daniel
> 

I am going to deprecate the int[] code for UUIDs. Since we are moving to 
Java 1.6.. we get a UUID class in the JDK. That means we can look 
objects based on a string or on a UUID. The old API works, but it is 
marked as deprecated.

-- bk





More information about the libvir-list mailing list