dcsimg
JBuilder output files
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alexander_K
Posted On:   Tuesday, March 20, 2001 04:11 AM

When i doing a some changes in a project then JBuilder 3.5 generates a some files for example
filename.class - main file
filename$1.class
filename$2.class
and so on. What is it this files (filename$x) and how i can cancel their generating.

WBR Alexander K.

Re: JBuilder output files

Posted By:   Luigi_Viggiano  
Posted On:   Tuesday, March 20, 2001 06:05 AM

Those class files are generated if in the source code there're inner classes:

example:


class A {
class B {}
}


will generate A.class and A$B.class

if you use anonymous inner classes you get A$1.class and so on..

example:


class A {
Object o = new Object() {};
}


will generate A.class and A$1.class

You cannot cancel their generation: it's the way the java compilation handle inner classes. Every compiler java compliant must use the same inner-class handling (even if in Unix Systems it can be a problem, because "$" is a special character for common shells).

About | Sitemap | Contact