Using the reflection APIs to mutate a strictly-initialized final instance field 
should fail with IllegalAccessException.

The list of conditions in Field.set and setAccessible are also updated.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - Improve Field.setAccessible docs
 - Update unreflectField
 - List condition in Field.set and setAccessible docs
 - Initial commit

Changes: https://git.openjdk.org/valhalla/pull/2548/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2548&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8386702
  Stats: 163 lines in 4 files changed: 158 ins; 1 del; 4 mod
  Patch: https://git.openjdk.org/valhalla/pull/2548.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2548/head:pull/2548

PR: https://git.openjdk.org/valhalla/pull/2548

Reply via email to