"Mythic Wave" <> said:
>Sometimes when I compile a long .java file, I get two class files as a
>result. For example, the file servlet.java compiles to servlet.class and
>servlet$1.class. Does anyone know why the servlet$1.class file is created
>and how to control it?
It's not the length. It's that you have an anonymous inner class in
your code. If a single source file contains more than one anonymous
inner classes, you'll get Foo$2.class, Foo$3.class, ... .
See:
http://mindprod.com/jgloss/innerclasses.html
http://mindprod.com/jgloss/anonymousclasses.html
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)