You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2018/05/25 07:17:00 UTC

[jira] [Commented] (KARAF-5764) ensure we can build and run Karaf master with JDK11

    [ https://issues.apache.org/jira/browse/KARAF-5764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16490338#comment-16490338 ] 

Freeman Fang commented on KARAF-5764:
-------------------------------------

A quick update, with the patch I attached. Karaf master can build and run all tests with JDK11 EA.

Changes are mainly in two area.
 # ASM upgrade  we need to use ASM 6.2 SNAPSHOT which can handle with JDK11 class version code(55). Hence we need rebuild xbean and easymock with ASM 6.2 SNAPSHOT because they both embed ASM source code
 # Since JDK11, those modules get removed from JDK

{code}
 * java.corba — CORBA
 * java.transaction — The subset of the Java Transaction API defined by Java SE to support CORBA Object Transaction Services
 * java.activation — JavaBeans Activation Framework
 * java.xml.bind — Java Architecture for XML Binding (JAXB)
 * java.xml.ws — Java API for XML Web Services (JAX-WS), Web Services Metadata for the Java Platform, and SOAP with Attachments for Java (SAAJ)
 * java.xml.ws.annotation — The subset of the JSR-250 Common Annotations defined by Java SE to support web services

{code}

So we don't need to use --patch-module for those APIs which already get removed. What we do is just use normal bundle for those APIs, or if we really need those API in boot stage we can put those in $KARAF_HOME/lib/boot folder, so far we need jaxb and activation in lib/boot/folder as features.core need those.

 

I will hold the commit until all necessary upstream version get released

 

Thanks!

Freeman

 

> ensure we can build and run Karaf master with JDK11
> ---------------------------------------------------
>
>                 Key: KARAF-5764
>                 URL: https://issues.apache.org/jira/browse/KARAF-5764
>             Project: Karaf
>          Issue Type: Task
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>            Priority: Major
>         Attachments: KARAF-5764.patch
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)