 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Vladimir Belitski Guest
|
Posted: Mon Sep 20, 2004 3:31 pm Post subject: Missing classes |
|
|
Hi,
I have a number of java-files in a package with more than one class
definition in one file.
In some cases (not for all java-files) not all class-files corresponding to
the defined classes
have been created by compiler (JBuilderX, Developer). The structure of
java-files is always
the same - one public class and one or more classes with default
visibility.
Clear, I can put all classes in separate files but what is wrong ?
Regards,
Vladimir Belitski
|
|
| Back to top |
|
 |
Tai Nguyen Guest
|
Posted: Wed Sep 22, 2004 3:56 pm Post subject: Re: Missing classes |
|
|
I got similar problem as well. It seems that JBuilder does not rebuild all
the inner classes correctly. For example, if my class name is foo then it
only builds foo.class and foo$1.class, but not foo$2.class. If I delete
foo$1.class then it rebuilds both foo$1 and foo$2. Other option is to
rebuild the whole project (ie, delete all the class files).
This problem is annoying
Cheer,
Tai
"Vladimir Belitski" <Vladimir.Belitski (AT) winpeak-software (DOT) com> wrote in
message news:414ef879 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi,
I have a number of java-files in a package with more than one class
definition in one file.
In some cases (not for all java-files) not all class-files corresponding
to
the defined classes
have been created by compiler (JBuilderX, Developer). The structure of
java-files is always
the same - one public class and one or more classes with default
visibility.
Clear, I can put all classes in separate files but what is wrong ?
Regards,
Vladimir Belitski
|
|
|
| Back to top |
|
 |
Shankar Unni Guest
|
Posted: Wed Sep 22, 2004 4:46 pm Post subject: Re: Missing classes |
|
|
Tai Nguyen wrote:
| Quote: | I got similar problem as well. It seems that JBuilder does not rebuild all
the inner classes correctly. For example, if my class name is foo then it
only builds foo.class and foo$1.class, but not foo$2.class.
|
That doesn't make any sense. There's no way a compiler can selectively
build anonymous classes from inside a top-level class. If any part of a
file has to be compiled, everything in that one class file will be
compiled, anonymous classes included.
Ditto for Vladimir's case (the original posting): once javac has been
invoked on a file, it'll compile all the classes in it. Javac doesn't
have any fancy make-like features where it can choose to generate (or
not) code for parts of the file.
I'm wondering if you're running into some other problem, e.g. maybe with
ill-behaved antivirus programs.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|