Hacking in the 'nameOf'
Summary
The article presents a provocative exploration of implementing a runtime nameOf utility in Java by inspecting bytecode with StackWalker and the ClassFile API. It includes step-by-step code samples and a conceptual stack-machine approach to recover the textual name of an identifier, concluding with a warning about the instability and production risks of such a solution.