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

Darrel Schneider commented on GEODE-9468:
-----------------------------------------

The tomcat 7, 8, and 9 source code we bundle also has a call to setAccessible 
in org.apache.geode.modules.session.catalina.Tomcat9CommitSessionValve so even 
if we fix DeltaSession ifTomcat9CommitSessionValve is used it will also fail on 
java 16.

> tomcat session state management will not work on java 16
> --------------------------------------------------------
>
>                 Key: GEODE-9468
>                 URL: https://issues.apache.org/jira/browse/GEODE-9468
>             Project: Geode
>          Issue Type: Bug
>          Components: http session
>            Reporter: Darrel Schneider
>            Priority: Major
>              Labels: Java16
>
> The class org.apache.geode.modules.session.catalina.DeltaSession calls 
> Field.setAccessible in a static block. It is getting access to a field in the 
> super class which was private in tomcat 7 (see GEODE-3434). Because of this 
> tomcat session state management will not work on java 16 (see 
> [https://softwaregarden.dev/en/posts/new-java/illegal-access-in-java-16/)] 
> unless jvm args are used to permit the call (for example 
> "--illegal-access=permit").
> If we can drop support for tomcat 7 then this reflection would no longer be 
> needed. It might also be possible to only call setAccessible if the field is 
> private which would mean only tomcat 7 would not work on java 16.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to