Community
Participate
Working Groups
The snippet class is loaded alongside the surrounding class, but not as a nestmate or subclass or anything, so we can't use normal access checks. We can, however, instantiate a MethodHandles.Lookup object relative to the surrounding class, and use that to make MethodHandles for putting and getting fields. For non-public methods, we may have to make lambda exprssions to cover those (e..g "String::length" == "(String s) -> s.length()", or invoke LmabdaMetafactpry directly.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.