Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Steven Simpson Newsgroups: comp.lang.java.programmer Subject: Re: Is it necessary the source file should be at the same location with the class file? Date: Sun, 24 Jul 2016 22:08:24 +0100 Organization: A noiseless patient Spider Lines: 26 Message-ID: <8bnf6d-sua.ln1@s.simpson148.btinternet.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="9fcb3f23b3bcb8532517da33c152ddd9"; logging-data="2690"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198Lsv9uY9H5qiEDMpV5VVfiJyrJJKoKiY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: Cancel-Lock: sha1:ecKAhnAkA8nt54rZPfc42/BPqxY= Xref: csiph.com comp.lang.java.programmer:35130 On 24/07/16 12:47, Arne Vajhøj wrote: > On 7/24/2016 3:42 AM, Steven Simpson wrote: >> On 24/07/16 00:05, Arne Vajhøj wrote: >>> projectroot/mypackage/MyClass.class >>> >>> Remember to have projectroot in classpath. >> >>> projectroot/bin/mypackage/MyClass.class >>> >>> Remember to have projectroot/bin in classpath. >> >> Do you mean just for executing, or for compiling (too)? > > For: > * excecuting > * compiling if multiple compiles With the output directory in the classpath, doesn't it mean that javac will attempt a kind of incremental build? And doesn't it then miss some not particularly extraordinary cases (inlined constants; return types), leading to broken builds? ISTR it being discussed here not so long ago, but haven't found the thread. -- ss at comp dot lancs dot ac dot uk