The most upvoted answer to this question suggests searching class-files with specific names in specific folders, as a workaround for reflecting anonymous inner classes. In which document (if any) are the names and locations of Java class-files specified?
The VM-spec contains a detailed specification of the format of class-files, but there seems to be no specification of how they should be named and where they should be stored. Likewise, the language-spec does not seem to touch on this subject.
From the source code of the Class class (getSimpleName method) :
The mentioned document : JLS3 “Binary Compatibility” (13.1) states it like this (more precise but less concise) :
So it can be said that the commonly known naming scheme is perfectly normalized and we can rely on it (as must rely all class loaders to find the necessary class files).