scala/scala — pull request #2654 by retronym (2013-06-13 21:30:20+00:00)
Title: SI-6622 Emit EnclosingMethod attribute for val-nested classes

Otherwise, Java reflection reports them as member classes. This
in turn causes Scala reflection to fail to conjure a class symbol
for them.

We use the corresponding getter method as the enclosing method.

Review by @JamesIry, @xeno-by