You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Scotte Zinn <sz...@patronix.com> on 2000/09/13 02:57:44 UTC

Question about warning message: file modified in the future

I'm running on a Win98 system and frequently (but not always) get this
warning message when I am compiling files in my build tree just after
copying them from my source tree.

The code generating the message (in Javac.java) is:

                if (srcFile.lastModified() > now) {
                    log("Warning: file modified in the future: " +
                        files[i], Project.MSG_WARN);
                }

I also remember reading somewhere that the Windows filesystem has an
accuracy of 2 seconds and I'm wondering it that is what is causing the error
message.  I don't know of any other way to cause this message to be
generated.

In any case, what is the purpose of having this message being displayed?

-- Scotte


Re: Wierd error: Cannot override the method of the same signature.

Posted by do...@mad.scientist.com.
On Wed, 13 Sep 2000, Hamish Currie wrote:

> Hi,
> 
> I get a weird behaviour using ant, If I am compiling my project for the
> first time since a new checkout or removal of the generated class files, I
> get the errors below, it compiles just fine the next time I run ant. I don't
> get these errors when compiling in Kawa, which I believe just passes all the
> files to javac on the cmd line. I am using ant on a windows 98 machine with
> jdk 1.2.2. Any help would be appreciated.

It looks like you are either using wrong javac or somehow
have wrong version of swing on classpath. Make sure there is
no javac in any of windows directories and that you have no
copies of swing in classpath. 

Multiple versions of javac is most likely candidate thou.

Cheers,

Pete

*--------------------------------------------------*
| Latrobe University,     | Does the name 'Pavlov' |
| Bundoora, Australia     |    ring a bell ?       |
*--------------------------------------------------*


Wierd error: Cannot override the method of the same signature.

Posted by Hamish Currie <ha...@vp.list.to>.
Hi,

I get a weird behaviour using ant, If I am compiling my project for the
first time since a new checkout or removal of the generated class files, I
get the errors below, it compiles just fine the next time I run ant. I don't
get these errors when compiling in Kawa, which I believe just passes all the
files to javac on the cmd line. I am using ant on a windows 98 machine with
jdk 1.2.2. Any help would be appreciated.

Best Regards

Hamish Currie
---------------------------------------------------------------
[javac] error: The method com.sun.java.accessibility.AccessibleContext
getAccessibleContext() declared in class com.sun.java.swing.JComponent
cannot override the method of the same signature declared in class
java.awt.Component.  They must have the same return type.
[javac] error: The method com.sun.java.accessibility.AccessibleContext
getAccessibleContext() declared in class com.sun.java.swing.JFrame cannot
override the method of the same signature declared in class java.awt.Frame.
They must have the same return type.