Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8327786

Fluent setAccessible() for the Field class

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      Java reflection API can be at times a bit cumbersome. There are cases when it may be justified, but there are also cases when it just adds to the boilerplate. Java can remain just as secure and safe while also further improving its fluency like it did in Java 8. I put forward a very small PR that I believe serves that purpose: https://github.com/openjdk/jdk/pull/17578. It introduced a fluent setAccessible() for the Field class. It allows for concise, one-statement extraction of private field values which is a quite common procedure. I need an issue to link it to. I hope you can help with that


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: