From issues-return-33295-archive-asf-public=cust-asf.ponee.io@struts.apache.org Tue May 21 11:07:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 24F5E18061A for ; Tue, 21 May 2019 13:07:03 +0200 (CEST) Received: (qmail 28855 invoked by uid 500); 21 May 2019 11:07:02 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 28845 invoked by uid 99); 21 May 2019 11:07:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2019 11:07:02 +0000 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 D89D4E0CD9 for ; Tue, 21 May 2019 11:07: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 16F7820FEB for ; Tue, 21 May 2019 11:07:00 +0000 (UTC) Date: Tue, 21 May 2019 11:07:00 +0000 (UTC) From: "Markus Fischer (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-5031) OGNL: An illegal reflective access operation has occurred MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-5031?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1684472= 7#comment-16844727 ]=20 Markus Fischer commented on WW-5031: ------------------------------------ I do not have a maven project her. Are there any standalone artifacts? I tr= ied to checkout git and did run ""{{mvn -DskipAssembly=3Dtrue install". Thi= s gave me struts-2.6 only.}} > OGNL: An illegal reflective access operation has occurred > --------------------------------------------------------- > > Key: WW-5031 > URL: https://issues.apache.org/jira/browse/WW-5031 > Project: Struts 2 > Issue Type: Bug > Components: Core > Affects Versions: 2.5.20 > Environment: Java 11 / Linux / test environment on eclipse / Tomc= at 8.5 > Reporter: Markus Fischer > Priority: Minor > Fix For: 2.5.21, 2.6 > > > Running Struts on Java 11 gives a new warning about illegal reflection, n= ot present on Java 8: > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by ognl.OgnlRuntime ([file:/.../works= pace/.../.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/...= /WEB-INF/lib/ognl-3.1.21.jar|file:///.../workspace/SC/.metadata/.plugins/or= g.eclipse.wst.server.core/tmp0/wtpwebapps/.../WEB-INF/lib/ognl-3.1.21.jar])= to method java.util.HashMap$Node.getKey() > WARNING: Please consider reporting this to the maintainers of ognl.OgnlR= untime > WARNING: Use --illegal-access=3Dwarn to enable warnings of further illeg= al reflective access operations > WARNING: All illegal access operations will be denied in a future releas= e > The warning appears after using the following tag in a JSP (name of prope= rties changed): > > The corresponding Action contains: > private Map items =3D new LinkedHashMap<>(); > =C2=A0 > =C2=A0 > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)