• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
And then we all jump out and yell "surprise! we got you this tiny ad!"
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic