Bug 574236 - Use Lookup.defineHiddenClass to avoid illegal access

Unsafe.defineAnonymousClass got removed in Java 17 and
Lookup.defineHiddenClass got added in Java 16.

Change-Id: Iac75637458ba46ceb04a1cf7a5b61993bc981ca5
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.framework/+/182046
Tested-by: Equinox Bot <equinox-bot@eclipse.org>
1 file changed