I have noticed a similar problem with every java IDE I have tried.  When you
delete a .java source file that other classes depend on, the compiler does
not complain because the .class file still exists.  The solution would be to
make sure that whenever one class is marked as "dirty", all of the classes
the reference it are marked "dirty" as well. That way, even classes that
weren't modified get recompiled when they should.

-----Original Message-----
From: Vollmer, Thomas - CannonSA [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 9:57 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [Eap-features] Dependencies between classes


I think what pepijn might be asking for is
full dependency checking. If I recall correctly,
IntelliJ is working on this.
-Thomas

> -----Original Message-----
> From: Russell Gold [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 29, 2001 4:39 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Eap-features] Dependencies between classes
> 
> 
> At 11:59 AM +0100 11/29/01, pepijn wrote:
> >A nice feature would be if idea kept track of dependencies 
> between classes. For example, if I make two classes Foo and 
> Bar like this:
> >public class Foo {
> >  public static void main( String[] args ) {
> >    foo();
> >  }
> >
> >  public static void foo() {
> >    Bar.bar();
> >  }
> >}
> >
> >public class Bar {
> >  public static void bar() {
> >  }
> >}
> >
> >everything works fine. But when you add a parameter to the 
> Bar.bar method and compile the modified Bar class, the 
> compiler doesn't complain because Foo is not recompiled. 
> Running Foo then gives you a NoSuchMethodError. Would it be 
> feasible to make Idea keep track of this kind of dependency 
> and then try to compile Foo when I compile the changed Bar class?
> 
> Already supported. Use the "Change Signature" refactoring.
> -- 
> --------------------------------------------------------------
> ----------
> Russell Gold                     | "... society is tradition and order
> [EMAIL PROTECTED]                 | and reverence, not a 
> series of cheap
>                                  | bargains between selfish 
> interests."
> http://www.httpunit.org          |   - Poul Anderson, "Iron"
> 
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-features
> 

************************************ 
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT. 
************************************ 


_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to