j****s 发帖数: 34 | 1 真的有时侯有用,谢谢了!
但是很奇怪, 这个 A.java compiler , generate 4 class file,
which are A$1.class, A$2.class, A.class, A$maincontrol.class
Why become that?
And I can only cut other file and generate this class.
THe method does not work for other file
Anyone has idea?
thanks | s*****y 发帖数: 4 | 2 看一下,在A.java中是否有内部类(inner class),如果有是会编译出这种class的。
【在 j****s 的大作中提到】 : 真的有时侯有用,谢谢了! : 但是很奇怪, 这个 A.java compiler , generate 4 class file, : which are A$1.class, A$2.class, A.class, A$maincontrol.class : Why become that? : And I can only cut other file and generate this class. : THe method does not work for other file : Anyone has idea? : thanks
| q***e 发帖数: 90 | 3 They are anonymous classes. If you don't know
what is anonymous class, just disregard it.
【在 j****s 的大作中提到】 : 真的有时侯有用,谢谢了! : 但是很奇怪, 这个 A.java compiler , generate 4 class file, : which are A$1.class, A$2.class, A.class, A$maincontrol.class : Why become that? : And I can only cut other file and generate this class. : THe method does not work for other file : Anyone has idea? : thanks
|
|