How to set up a fast correct java build?

A

Alessio Stalla

I believe my simple example is

// source foo.java
public class foo { foo() { bar x = null; } }
// source bar.java
public class bar { bar() {} }

I just double checked with javap, (though I didn't run my own hand-
written class file parser), and it appears that in foo.class, there is
not a single reference to "bar". If bar were to be moved so that it
could no longer be found, then foo's compilation would fail. I don't
know if there are more cases like this, but I imagine that javac could
do other optimizations which would remove references to used classes
from the compiled classfile.

Hmm. This is indeed a case I hadn't thought about, and as you say,
there are maybe other cases like this. So I was being too optimistic...
 
R

RedGrittyBrick

Tom said:
Oh, and the build time for your case would be lower than my prediction
if your build machine is beefier than mine - an Eee PC 1001HA, with a
1.60 GHz Intel Atom N270 CPU, 1 GB of RAM, and i'm guessing a 5400 rpm
disk. Depends on whether you can afford to spend more than 200 quid on
it, i guess.

I must get a seatbelt for my chair - or a much softer carpet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top