Conditioned on the appropriate setting of target version, remove generation and use of access bridges that are no longer needed as a result of relaxed nestmate access. Specifically: bridges for accessing private members of nestmates are no longer needed; these can be accessed directly via bytecode. However, some access bridges are still needed for accessing protected members of nestmates that were inherited from non-nestmates. In the short term, we can simply leave these bridges in place; in the longer term, we can consider using method handles (as the MH runtime will support Lookup.in to teleport through nests.)
|