ReflectionFactory.newConstructorForSerializatoin might bypass strict 
initialization. We should make sure the skipped classes in the constructor 
chain do not declare strict instance fields.

This updates the specification of jdk.unsupported's ReflectionFactory to 
reflect this behavioral update.

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

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

Commit messages:
 - Further cleanup
 - Merge branch 'lworld' of https://github.com/openjdk/valhalla into 
fix/reflect-factory-strict
 - Prevent reflection factory hacking strict init

Changes: https://git.openjdk.org/valhalla/pull/2350/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2350&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8382556
  Stats: 239 lines in 6 files changed: 217 ins; 4 del; 18 mod
  Patch: https://git.openjdk.org/valhalla/pull/2350.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2350/head:pull/2350

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

Reply via email to