You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Jose Alberto Fernandez <JF...@viquity.com> on 2000/06/28 23:41:15 UTC
Strange error during javac task compilation
Hi Anters,
I have a very strange problem happening when compiling certain files with
Ant.
The file in question has the followin pattern of code:
File P1/A.java
package P1;
import P1.common.*;
public class A extends SA {
// Some code here using method mSA()
class InnerA {
InnerA() {
mSA();
}
}
File P1/common/SA.java
package P1.common;
public class SA {
void mSA(){ }
}
When I compile this file with Ant using the same options as in Ant's
build.xml I get an error while compiling the call in innerA to mSA(). The
error is: mSA() not defined in A.
However the code compiles just fine when compiling outside Ant with javac. I
am using JDK 1.3.
I finnaly solved the problem by replacing the call mSA() with: A.this.mSA();
Does anyone know why the compiler behaves differentl inside and outside Ant?
Is there some option I need to set for getting the same behaviour in both
places?
Jose Alberto