ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Bondarenko" <ente...@gmail.com>
Subject Re: javac task problem in Java 6
Date Sat, 01 Nov 2008 21:50:10 GMT
Any new regarding this issue?

Thanks!

Sergey.

2008/10/30 Sergey Bondarenko <enterit@gmail.com>

> 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 C.java and pack into c.jar
> Then you compile B.java, using c.jar in classpath, and pack it into b.jar
>
> Then you compile A.java, 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?
> http://download.cl1p.net/javac_bug/?FILE=17647
> 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.
> Thanks!
>
>
> Regards,
> Sergey Bondarenko.
>

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