BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Missing classes

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Compiler
View previous topic :: View next topic  
Author Message
Vladimir Belitski
Guest





PostPosted: Mon Sep 20, 2004 3:31 pm    Post subject: Missing classes Reply with 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
Tai Nguyen
Guest





PostPosted: Wed Sep 22, 2004 3:56 pm    Post subject: Re: Missing classes Reply with 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. 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





PostPosted: Wed Sep 22, 2004 4:46 pm    Post subject: Re: Missing classes Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Compiler All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.