MagicAccessorImpl

Egor Ushakov egor.ushakov at jetbrains.com
Fri Jun 9 12:32:43 UTC 2017


Hi,

we use MagicAccessorImpl in compiling evaluator of IDEA debugger (to 
allow evaluation with anonymous classes, lambdas etc.), see
https://github.com/JetBrains/intellij-community/blob/master/java/debugger/impl/src/com/intellij/debugger/ui/impl/watch/CompilingEvaluator.java#L122
It is required to allow the generated class to access all fileds from 
the base class.
Of course this is a hack, but it worked well. Will there be a way to 
emulate this in jdk 9?

Thanks!

-- 
Egor Ushakov
Software Developer
JetBrains
http://www.jetbrains.com
The Drive to Develop



More information about the jdk9-dev mailing list