Re: How to set up a fast correct java build?
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---910079544-690033669-1262978073=:17569
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT
On Fri, 8 Jan 2010, Alessio Stalla wrote:
On Jan 8, 1:46?pm, Andreas Leitgeb <a...@gamma.logic.tuwien.ac.at>
wrote:
Andreas Leitgeb <a...@gamma.logic.tuwien.ac.at> wrote:
Alessio Stalla <alessiosta...@gmail.com> wrote:
I don't get why you believe that Java class files do not contain
enough dependency information. At least the class hierarchy and
classes referred to by fields and methods (signature and code) should
be found there. Reflection can be problematic, but it would be with a
Java parser too. However, since I'm not an expert in the matter, I may
be missing something.
Indeed: ?static final fields used from other classes. ? Only their
values are used, but their names do not show up in your .class file.
Small correction: ?static final fields with a compiletime known value.
Ok, thanks, I didn't know it. However, if this is the only problem,
it's a very infrequent: how often is a static final field initialized
with a compile time constant changed? Probably infrequently enough
that you can just perform a full clean and build in those rare cases.
No - because you don't even have enough information to *detect* these
cases. Consider:
// A.java
class A {
public static final String FOO = "foo";
}
// B.java
class B {
public static final String FOO = A.FOO;
}
You change A.java. How do you know you have to recompile B?
tom
--
There are lousy reviews, and then there's empirical shitness. -- pikelet
---910079544-690033669-1262978073=:17569--