You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/07/05 21:34:00 UTC

[jira] [Commented] (JCLOUDS-1542) Java 11 warns of illegal reflective access

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

ASF subversion and git services commented on JCLOUDS-1542:
----------------------------------------------------------

Commit 9e4c7a16daeb97f9b51b9077e40d12ce5343840f in jclouds's branch refs/heads/master from Jean-Noël Rouvignac
[ https://gitbox.apache.org/repos/asf?p=jclouds.git;h=9e4c7a1 ]

JCLOUDS-1542 follow-up: check whether isAccessible() is already set (#79)

AccessibleObject.canAccess() would be much much better,
but this API can only be used from Java 9 onward.

> Java 11 warns of illegal reflective access
> ------------------------------------------
>
>                 Key: JCLOUDS-1542
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1542
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-core
>    Affects Versions: 2.2.0
>            Reporter: ctranxuan
>            Priority: Major
>             Fix For: 2.3.0
>
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> When using JClouds BlobStore for Google Cloud Storage with Java 11, some warning are displayed by the JVM about illegal reflective access:
>  
> {quote}WARNING: An illegal reflective access operation has occurred
>  WARNING: Illegal reflective access by org.jclouds.reflect.Reflection2$1 ([file:/.../jclouds-core.jar|file:///.../jclouds-core.jar]) to constructor java.lang.String(char[],int,int,java.lang.Void)
>  WARNING: Please consider reporting this to the maintainers of org.jclouds.reflect.Reflection2$1
>  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
> {quote}
>  
> JClouds works but as stated, these illegal reflective accesses may be denied in upper Java versions.



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