Easy Commons

Remove API setting a final attribute

Details

  • Type: Task Task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: easycommons-lang-1.6.1
  • Fix Version/s: easycommons-lang-1.7.0
  • Component/s: Lang-Reflection
  • Security Level: Public
  • Description:
    Hide

    Java 17 does not allow anymore to change the value of a field declared as 'final' using Java reflection, so the following APIs can't be used and can be removed:

    ReflectionHelper.getFieldValue(Class<?>, Object, String)
    ReflectionHelper.setFieldValue(Object, String, Object)
    ReflectionHelper.setFieldValue(Class<?>, String, Object, boolean)
    ReflectionHelper.setFieldValue(Class<?>, Object, String, Object, boolean)
    Show
    Java 17 does not allow anymore to change the value of a field declared as 'final' using Java reflection, so the following APIs can't be used and can be removed:
    ReflectionHelper.getFieldValue(Class<?>, Object, String)
    ReflectionHelper.setFieldValue(Object, String, Object)
    ReflectionHelper.setFieldValue(Class<?>, String, Object, boolean)
    ReflectionHelper.setFieldValue(Class<?>, Object, String, Object, boolean)
  • Environment:
    -

Issue Links

Activity

Christophe DENEUX made changes - Tue, 6 Jun 2023 - 18:54:36 +0200
Link This issue blocks EASYCOMMONS-17 [ EASYCOMMONS-17 ]
Christophe DENEUX made changes - Wed, 31 May 2023 - 11:06:28 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s easycommons-lang-1.7.0 [ 11085 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Wed, 24 May 2023 - 10:18:13 +0200
Link This issue blocks PETALSDISTRIB-531 [ PETALSDISTRIB-531 ]
Christophe DENEUX made changes - Wed, 24 May 2023 - 10:17:33 +0200
Description Java 17 does not allow anymore to change the value of a field declared as 'final' using Java reflection, so the following API can't be used and can be removed:
{code}
ReflectionHelper.setFieldValue(Class<?>, Object, String, Object, boolean)
{code}
Java 17 does not allow anymore to change the value of a field declared as 'final' using Java reflection, so the following APIs can't be used and can be removed:
{code}
ReflectionHelper.getFieldValue(Class<?>, Object, String)
ReflectionHelper.setFieldValue(Object, String, Object)
ReflectionHelper.setFieldValue(Class<?>, String, Object, boolean)
ReflectionHelper.setFieldValue(Class<?>, Object, String, Object, boolean)
{code}
Christophe DENEUX made changes - Wed, 24 May 2023 - 10:03:00 +0200
Description Java 17 does not allow anymore to change the value of a field declared as 'final' using Java reflection, so the following API can't be used and can be removed:
{{ReflectionHelper.setFieldValue(Class<?>, Object, String, Object, boolean)}}
Java 17 does not allow anymore to change the value of a field declared as 'final' using Java reflection, so the following API can't be used and can be removed:
{code}
ReflectionHelper.setFieldValue(Class<?>, Object, String, Object, boolean)
{code}
Christophe DENEUX made changes - Wed, 24 May 2023 - 10:02:39 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Wed, 24 May 2023 - 10:02:37 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Assignee Christophe DENEUX [ cdeneux ]

People

Dates

  • Created:
    Wed, 24 May 2023 - 10:02:21 +0200
    Updated:
    Tue, 6 Jun 2023 - 18:54:36 +0200
    Resolved:
    Wed, 31 May 2023 - 11:06:28 +0200