Code that ties up the compiler

A

Andrew Thompson

Long ago, I saw a piece of code that - when you went to compile it -
took a *very* long time to complete. It had something to do with
nested classes, AFAIR.

I was wondering if modern javac had improved the situation on
compiling such code, but I cannot recall the exact code, and cannot
find references to it.

Does anybody know the type of code that does/did occupy the compiler
for great lengths of time? I'm pretty sure it was less than 100 lines
of code.
 
R

Roedy Green

Does anybody know the type of code that does/did occupy the compiler
for great lengths of time? I'm pretty sure it was less than 100 lines
of code.

have a look at the code for AmericanTax. There are a number of tables
it has to construct and it seems to take forever.

see http://mindprod.com/jgloss/products1.html#AMERICANTAX

--
Roedy Green Canadian Mind Products
http://mindprod.com
"Humanity is conducting an unintended, uncontrolled, globally pervasive experiment
whose ultimate consequences could be second only to global nuclear war."
~ Environment Canada (The Canadian equivalent of the EPA on global warming)
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top