ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Bondarenko" <>
Subject javac task problem in Java 6
Date Thu, 30 Oct 2008 18:22:47 GMT
Hi dear Ant developers!

I think I found a bug in Ant javac task, (or maybe in Java compiler).
I need you help to check if it is true.

Javac task behaves differently in Java 6 and Java 5.
For some reason it works properly in Java 5 on the same project structure,
but fails in Java 6.

Imagine situation when you have 3 classes with dependencies between them:
A -> B -> C

Then you compile and pack into c.jar
Then you compile, using c.jar in classpath, and pack it into b.jar

Then you compile, using b.jar.

It works properly in Java 5, but fails in Java 6: compiler can not resolve
dependency B->C (though you compile only A class).

I created simple test case, so could you please look at it and try to find
out the cause of the problem?
There are two bat-files in archive: works.bat and fails.bat. The only
difference between them is JDK version.

I tried on Ant 1.7.1 and 1.6.5, using jdk1.6.0_10 and jdk1.5.0_16.
The result is stable: compilation works on JDK 5, and fails on JDK 6.

Any help is appreciated.

Sergey Bondarenko.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message