At 10:50 AM 3/26/2001 +1200, Toby Allsopp wrote:
>Paul Kinnucan wrote:
>> 
>> I went back and retested my compile master and found that it did not work
>> in the following important case.  ClassA uses a method Foo defined by
>> ClassB. I change the signature of Foo in classA. Recompiling the compile
>> master does NOT result in ClassA being recompiled and hence ClassA is no
>> longer valid. Apparently javac's dependency checking regards a class as
>> current if it is not older than its source. This is not good enough to
>> ensure that a build is valid.
>> 
>> I thought I had tested this case but apparently my test was not constructed
>> properly.
>> 
>> Apparently the only way to guarantee that a build is valid with javac is to
>> recompile all the classes.
>
>Were you using javac -Xdepend for this test?
>
>We use a variant of your "compile master" idea for our Java build and,
>as far as I know, it handles this case when using the -Xdepend option to
>javac (this is with JDK 1.2.2).

I was using JDK 1.3. The javac -X options were eliminated in JDK 1.3.

- Paul

Reply via email to