Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java バイトコードは実際には名前のないクラスをサポートしていないと聞いたことがあります。javac は名前のないクラスを名前付きのクラスにどのように変換しますか?
という形式の名前を合成しますEnclosingClass$n。ここで、「n」は の無名クラスのカウンターですEnclosingClass。識別子での使用$は推奨されないため、これらの名前はユーザー指定の名前と衝突しないようにしてください。
EnclosingClass$n
EnclosingClass
$