• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kevin Crays
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kevin Crays
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic