You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/08/13 03:43:00 UTC

[jira] [Work logged] (LANG-1667) Cannot Use ReflectionToStringBuilder for ArrayList on Java 16 Due to Module Access

     [ https://issues.apache.org/jira/browse/LANG-1667?focusedWorklogId=637666&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-637666 ]

ASF GitHub Bot logged work on LANG-1667:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Aug/21 03:42
            Start Date: 13/Aug/21 03:42
    Worklog Time Spent: 10m 
      Work Description: greatmastermario opened a new pull request #788:
URL: https://github.com/apache/commons-lang/pull/788


   Fixed test failures related to accessing private fields of ArrayList in ReflectionToStringBuilder while running ToStringBuilderTest in Java 16


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 637666)
    Remaining Estimate: 0h
            Time Spent: 10m

> Cannot Use ReflectionToStringBuilder for ArrayList on Java 16 Due to Module Access
> ----------------------------------------------------------------------------------
>
>                 Key: LANG-1667
>                 URL: https://issues.apache.org/jira/browse/LANG-1667
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.builder.*
>    Affects Versions: 3.12.0
>         Environment: JDK 16
>            Reporter: Andrew Thomas
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In Java 16, many classes in java.base module are not able to be made accessible due to access restrictions on the module. An example is ArrayList.
>  
> In ToStringBuilderTest.testReflectionHierarchyArrayList(), the test fails with the following error:
> {code:java}
> java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.Object[] java.util.ArrayList.DEFAULTCAPACITY_EMPTY_ELEMENTDATA accessible: module java.base does not "opens java.util" to unnamed module @3339ad8e{code}
>  
> This is causing build failures for all open PRs.



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