[libvirt] [PATCH libvirt-java] Require at least Java 8

Wido den Hollander wido at widodh.nl
Wed Sep 2 11:53:19 UTC 2015



On 02-09-15 13:11, Michal Privoznik wrote:
> On 28.08.2015 13:12, Wido den Hollander wrote:
>> Signed-off-by: Wido den Hollander <wido at widodh.nl>
>> ---
>>  INSTALL          | 2 +-
>>  build.properties | 6 +++---
>>  2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/INSTALL b/INSTALL
>> index 581512d..2cdd829 100644
>> --- a/INSTALL
>> +++ b/INSTALL
>> @@ -11,7 +11,7 @@ main item you may need to change in this file is the jars.dir
>>  property. This property should point to a directory which contains 
>>  the junit.jar and jna.jar files.
>>  
>> -You will need a Java Development Kit accepting the version 1.6
>> +You will need a Java Development Kit accepting the version 1.8
>>  of the language since the bindings use enums as well as the new 
>>  for loop syntax
>>  
>> diff --git a/build.properties b/build.properties
>> index bcc7b8c..c7c1a43 100644
>> --- a/build.properties
>> +++ b/build.properties
>> @@ -1,8 +1,8 @@
>>  version=0.5.1
>>  release=1
>>  libvirt.required=0.9.12
>> -java.required=1.6.0
>> -java.target=1.6
>> -java.source=1.6
>> +java.required=1.8.0
>> +java.target=1.8
>> +java.source=1.8
>>  rpm.topdir=/home/veillard/rpms
>>  jar.dir=/usr/share/java
>>
> 
> I know nothing about libvirt-java, but maybe you can be more verbose why
> this change is needed.
> 

The current code doesn't compile under Java 7, but Java 7 is also EOL.

Java 8 is the way forward since there won't be any security fixes for
Java 7 anymore.

Wido

> Michal
> 




More information about the libvir-list mailing list