Java Other
Latest commit e3aa13f Sep 11, 2015 @avdv avdv Fix compilation error when using -source 1.x
When using JDK 1.8 with the compiler option `-source 1.6` or `-source
1.7` or JDK 1.7 with the `-source 1.6` compiler option, compilation
failed with:

```
src/main/java/org/libvirt/event/DomainEvent.java:63: error: incompatible types: inference variable T#1 has incompatible upper bounds Enum<T#2>,T#3
        return this.type.obtain(this.detail);
                               ^
  where T#1,T#2,T#3 are type-variables:
    T#1 extends Enum<T#1> declared in method <T#1>obtain(int)
    T#2 extends T#3
    T#3 extends Enum<T#3>,DomainEventDetail declared in method <T#3>getDetail()
```

Actually, it compiles just fine using a 1.6, 1.7 or 1.8 Java compiler
when omitting the -source option.

Remove the `obtain` method altogether and use the `safeAt` method
directly instead.

README.in

      This is the java binding to the libvirt library.

To use it, your program needs to access both the java library (.jar file),
and the JNA library (.jar file)

1. This version of the java mappings is designed to work with a 
a minimum libvirt version of @libvirt.required@

2. You must have the libvirt.jar file in your classpath.
By default the installs it to /usr/share/java/@version@.jar

3. See the INSTALL file for instructions on building locally.

4. You can run the unit tests with ant test.

5. There is a rudimentary functional test program that the libvirt-java-devel
installs put it into /usr/share/doc/libvirt-java-devel-@version@/test.java

    To run it, first copy the test.java file to writeable directory
    cp /usr/share/doc/libvirt-java-devel-@version@/test.java ~

    Compile the java file to a class:
    javac -classpath /usr/share/java/libvirt-@version@.jar test.java

    Then run the program:
    java -classpath .:/usr/share/java/jna.jar:/usr/share/java/libvirt-@version@.jar test

6. There is full javadoc for the API in /usr/share/javadoc/libvirt-java-@version@/

7. The full API can be found at http://www.libvirt.org/html/libvirt-libvirt.html