aspose file tools*
The moose likes Beginning Java and the fly likes Why wouldn't a Changed class doesn't get compiled? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why wouldn Watch "Why wouldn New topic
Author

Why wouldn't a Changed class doesn't get compiled?

Kevin Crays
Ranch Hand

Joined: Apr 26, 2006
Posts: 41
The scenario:

Class A is the main class.

A has a reference to an instance of B
B has a reference to an instance of C

Compile A.java. Run it have some sort of runtime issue.

I then delete a ';' from a line in C, save and recompile [A].java and C is never recompiled.

Is that normal? I understand that A doesn't have a direct ref to C, but I don't think I've ever had this happen before.

I suspect this is because I've normally had a commercial Compiler/IDE (I'm just using javac from the command line), and those do more extensive file checking , while javac just checks source files that it has direct refs to, but I'm not sure, so I thought I should ask.

Thanks,

Kevin

[ June 07, 2007: Message edited by: Kevin Crays ]
[ June 07, 2007: Message edited by: Kevin Crays ]

We're binary code: a one and a zero<br />You wanted violins and you got Nero
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Yes, that's normal. Build tools like Ant or IDEs all have to do something more elaborate.

"javac *.java" (or some variant of that, of course) is your best bet when compiling by hand.


[Jess in Action][AskingGoodQuestions]
Kevin Crays
Ranch Hand

Joined: Apr 26, 2006
Posts: 41
Originally posted by Ernest Friedman-Hill:
Yes, that's normal. Build tools like Ant or IDEs all have to do something more elaborate.

"javac *.java" (or some variant of that, of course) is your best bet when compiling by hand.


That's what I figured, but I had to be sure.

Thanks Ernest.

Kevin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why wouldn't a Changed class doesn't get compiled?
 
Similar Threads
Need help!!!
Problem compiling packages
need 2 rows rather than 5 from this query
Need Help getting Started
Updated K&B 5 Errata - 4/16