OSGi tests fail using JDK 9

Description

When building using JDK 9 (build 9-ea+101-2016-01-13-175626.javare.4276.nc) the build fails the OSGi tests:

Environment

Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00) Maven home: /opt/java/maven Java version: 9-ea, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "10.10.5", arch: "x86_64", family: "mac"

follows up on

Activity

Guillaume SmetMarch 23, 2017 at 9:54 AM

FWIW, the issue is talking about is in pax-exam, not Karaf.

It got fixed a few days ago:
https://github.com/ops4j/org.ops4j.pax.exam2/commit/b06403fcd0705bafd9fa0de6dad1f6b2d43922a5
but is yet to be released.

Once we got a fixed version of pax-exam, we'll see if Karaf is OK .

Gunnar MorlingMarch 23, 2017 at 8:10 AM

Yes, I reckon it's due to the recent change of the module containing the @Generated annotation. Karaf has hard-coded the old name somewhere, causing it to fail on recent Java 9 builds.

Marko BekhtaMarch 22, 2017 at 11:06 PM

I did try to run with Apache Karaf 4.1.0 as it's already released (https://mvnrepository.com/artifact/org.apache.karaf/apache-karaf/4.1.0). But it still fails on JDK 9

Gunnar MorlingDecember 7, 2016 at 5:42 PM
Edited

FTR, the OSGi tests pass for me when using Apache Karaf 4.1.0-SNAPSHOT (from https://repository.apache.org/content/groups/snapshots-group/), i.e. no other snapshots needed.

Breno PessoaSeptember 22, 2016 at 2:44 AM

Hi everyone

Please, see if can you help me in https://hibernate.atlassian.net/browse/HV-1106.

Thanks!

Fixed

Details

Assignee

Reporter

Labels

Participants

Breno Pessoa
Freeman Fang
Guillaume Smet
Gunnar Morling
Hardy Ferentschik
Marko Bekhta

Pull Request

Components

Fix versions

Priority

Created January 26, 2016 at 10:54 AM
Updated June 29, 2017 at 2:57 PM
Resolved June 26, 2017 at 8:05 AM