From issues-return-38308-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Thu Jan 11 16:13:03 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id DBF45180656 for ; Thu, 11 Jan 2018 16:13:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CC25C160C20; Thu, 11 Jan 2018 15:13:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 26A41160C1F for ; Thu, 11 Jan 2018 16:13:03 +0100 (CET) Received: (qmail 67236 invoked by uid 500); 11 Jan 2018 15:13:02 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 67225 invoked by uid 99); 11 Jan 2018 15:13:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2018 15:13:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DD24DC07E7 for ; Thu, 11 Jan 2018 15:13:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9U2RTiefbHzX for ; Thu, 11 Jan 2018 15:13:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DE8785F4E7 for ; Thu, 11 Jan 2018 15:13:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5B5C7E0373 for ; Thu, 11 Jan 2018 15:13:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1A867255CA for ; Thu, 11 Jan 2018 15:13:00 +0000 (UTC) Date: Thu, 11 Jan 2018 15:13:00 +0000 (UTC) From: "Guillaume Nodet (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-5448) Fix Java 9 warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-5448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16322398#comment-16322398 ] Guillaume Nodet commented on KARAF-5448: ---------------------------------------- I don't think this will ever be fixed in the JDK. Those warnings still appear with java 9.0.1 if you run {{la}} for example which shows the {{ShellTable}} list for bundles, you should see the warning. Each of these warnings needs to be fixed by somehow removing the reflection code, which may not be easy. > Fix Java 9 warnings > ------------------- > > Key: KARAF-5448 > URL: https://issues.apache.org/jira/browse/KARAF-5448 > Project: Karaf > Issue Type: Improvement > Reporter: Guillaume Nodet > Assignee: Guillaume Nodet > Fix For: 4.2.0 > > > There are a few illegal access warnings when running tests on Java 9: > {code} > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by org.apache.karaf.shell.support.table.ShellTable (jar:bundle://16.0:0/!/) to field java.io.PrintStream.charOut > WARNING: Please consider reporting this to the maintainers of org.apache.karaf.shell.support.table.ShellTable > WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations > WARNING: All illegal access operations will be denied in a future release > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by org.eclipse.jetty.util.BufferUtil (jar:bundle://52.0:0/!/) to field java.nio.MappedByteBuffer.fd > WARNING: Please consider reporting this to the maintainers of org.eclipse.jetty.util.BufferUtil > WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations > WARNING: All illegal access operations will be denied in a future release > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by org.apache.karaf.management.RmiRegistryFactory (jar:bundle://29.0:0/!/) to field sun.rmi.transport.tcp.TCPEndpoint.localEndpoints > WARNING: Please consider reporting this to the maintainers of org.apache.karaf.management.RmiRegistryFactory > WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations > WARNING: All illegal access operations will be denied in a future release > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by org.apache.aries.jndi.startup.Activator (jar:bundle://93.0:0/!/) to field javax.naming.spi.NamingManager.initctx_factory_builder > WARNING: Please consider reporting this to the maintainers of org.apache.aries.jndi.startup.Activator > WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations > WARNING: All illegal access operations will be denied in a future release > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 (bundle://151.0:1/netty-all-4.0.30.Final.jar) to field java.nio.Buffer.address > WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.PlatformDependent0 > WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations > WARNING: All illegal access operations will be denied in a future release > karaf-maven-plugin: > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/Users/gnodet/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.11/jaxb-impl-2.2.11.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) > WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector > WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations > WARNING: All illegal access operations will be denied in a future release > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)