Peter Reilly wrote:

Stefan Bodewig wrote:

On Fri, 06 Feb 2004, Stefan Bodewig <[EMAIL PROTECTED]> wrote:



I just don't want to adapt anything here before I see the docs for
JDK 1.5 as it is hard to tell what has been changed intentionally
and what is a bug in the JDK.


All that I've written in my last post applied to the 1.5alpha release,
the beta is on its way to my development box right now, although I
don't expect to find time to play with it before next week.


I just ran the tests with 1.5.0 beta on linux (fedora).

I had to remove the target=${javac.target} from the two javac tasks in
ant's build.xml.

It looks like this is a bug with javac compiler.

I get the same problem from the command line:

>javac -target 1.1 -sourcepath src -d classes src/*.java
javac: source release 1.4 requires target release 1.4
>javac -target 1.2 -sourcepath src -d classes src/*.java
javac: source release 1.4 requires target release 1.4
>javac -target 1.3 -sourcepath src -d classes src/*.java
javac: source release 1.4 requires target release 1.4
>javac -target 1.4 -sourcepath src -d classes src/*.java
>javac -target 1.4 -sourcepath src -d classes src/*.java
>

Peter


One test failed:
[junit] Testsuite: org.apache.tools.ant.taskdefs.JavacTest
[junit] Tests run: 5, Failures: 1, Errors: 0, Time elapsed: 0.012 sec
[junit] Testcase: testCompilerAttribute(org.apache.tools.ant.taskdefs.JavacTest): FAILED


Peter


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to