It works for me, I remove the throws and throw statement from B, and press Ctrl+F9. It compiles B, and then tries to compile A and fails.
Win NT 4.0 JDK 1.3.1 IDEA 609 > -----Original Message----- > From: Calum Maclean [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 07, 2002 10:02 AM > To: IntelliJ Mailing List (E-mail) > Subject: [Eap-list] Bug in dependency based compiling > > > CONFIDENTIALITY NOTICE: This message is confidential and for > the use only of > the intended recipient. > I've come across a bug in dependency based compiling. > > I've got class A: > > import java.io.*; > > public class A > { > public static void main(String[] arg) > { > try > { > new B(); > } > catch (IOException e) > { > } > } > } > > which depends on class B: > > import java.io.*; > > public class B > { > public B() > throws IOException > { > throw new IOException(); > } > } > > When I remove the throws clause (and the throw statement...) from the > constructor of B, and "Make Project", it does not attempt to > compile A and > hence finds no compilation errors. A, however, will not > compile if you try > to compile it separately. > > Calum > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list > _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
