Bug#351076: ant: Java illegalAccess exception with the kaffee compiled version

Wolfgang Baer WBaer at gmx.de
Thu Feb 2 17:06:34 UTC 2006


severity 351076 normal
thanks


Hi Akos,

this is not grave if it fails for one type of build file, therefore
lowered severity to normal. ant is used here in almost all the package builds
and no build failed because of the new upload.

Frohner Akos wrote:

> The example build.xml file reports the following error with 1.6.5-4,
> 1.6.5-5, but worked up to 1.6.5-3 (explicitly checked with 1.6.2):

Have you explicitly checked with 1.6.5-3 ?
Checking with 1.6.2 does not mean it worked up to 1.6.5-3.

> build.xml:3: java.lang.IllegalAccessError: tried to access field org.apache.tools.ant.taskdefs.Concat.fileUtils from class org.apache.tools.ant.taskdefs.Concat$TextElement
> 
> <project default="concattest">
>     <target name="concattest">
>         <concat>
>             <header>shall work</header>
>             <fileset file="build.xml"/>
>         </concat>
>         <concat>
>             <header file="build.xml"/>
>             <fileset file="build.xml"/>
>         </concat>
>     </target>
> </project>
> 
> The only difference, according to the changelog, is that from
> 1.6.5-4 ant is compiled with kaffee.

The difference is its compiled with ecj - it was already compiled with kaffe
a longer time (just with jikes).

Maybe ecj produces for this special case wrong bytecode. This needs to be
investigated. I will rebuild with jikes to see what happens.

Wolfgang




More information about the pkg-java-maintainers mailing list